Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (30 sloc) 0.98 kb
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
1 # -*- ruby -*-
2
3 Autotest.add_hook :initialize do |at|
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
4 at.extra_files << "../../ParseTree/dev/test/pt_testcase.rb"
5 at.libs << ":../../ParseTree/dev/lib:../../ParseTree/dev/test"
8644448 @zenspider Switched .autotest to new API.
zenspider authored
6 at.add_exception 'unit'
7 at.add_exception 'coverage'
a6ab12e @zenspider More (minor) lexer cleanup. Added profiling tasks.
zenspider authored
8 at.add_exception '.diff'
8644448 @zenspider Switched .autotest to new API.
zenspider authored
9 at.add_exception 'coverage.info'
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
10
00cbfcf @zenspider Excluded whitespace differences in unit diff for autotest.
zenspider authored
11 at.unit_diff = "unit_diff -u -b"
12
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
13 at.add_mapping(/^lib\/.*\.y$/) do |f, _|
14 at.files_matching %r%^test/.*#{File.basename(f, '.y').gsub '_', '_?'}.rb$%
15 end
16
17 at.add_mapping(/pt_testcase.rb/) do |f, _|
18 at.files_matching(/^test.*rb$/)
19 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
20
21 %w(TestEnvironment TestStackState).each do |klass|
22 at.extra_class_map[klass] = "test/test_ruby_parser_extras.rb"
23 end
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
24 end
25
26 Autotest.add_hook :run_command do |at|
27 system "rake parser"
28 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
29
c7f28c7 @zenspider Added parser dependency for multi.
zenspider authored
30 class Autotest
31 def ruby
32 File.expand_path "~/.multiruby/install/1.9.0-0/bin/ruby"
33 end
34 end if ENV['ONENINE']
35
dd7f45a @zenspider Moved StringScanner back to ruby_parser_extras.rb
zenspider authored
36 require 'autotest/rcov'
37 Autotest::RCov.command = 'rcov_info'
c7f28c7 @zenspider Added parser dependency for multi.
zenspider authored
38 # Autotest::RCov.pattern = 'test/test_ruby_lexer.rb'
Something went wrong with that request. Please try again.