Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (35 sloc) 1.167 kB
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
1 # -*- ruby -*-
2
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
3 require 'autotest/restart'
5462f8b @zenspider Isolated, fixed paths for PT->SP changes.
zenspider authored
4 require 'autotest/isolate'
76421c8 @zenspider - Fixed .autotest for minitest
zenspider authored
5 require 'autotest/rcov' if ENV['RCOV']
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
6
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
7 Autotest.add_hook :initialize do |at|
5462f8b @zenspider Isolated, fixed paths for PT->SP changes.
zenspider authored
8 at.extra_files << "../../sexp_processor/dev/lib/pt_testcase.rb"
9 at.libs << ":../../sexp_processor/dev/lib"
8644448 @zenspider Switched .autotest to new API.
zenspider authored
10 at.add_exception 'unit'
11 at.add_exception 'coverage'
12 at.add_exception 'coverage.info'
14f8e06 @zenspider + Updated .autotest and rakefile wrt rcov for new hoe capabilities
zenspider authored
13 at.add_exception '.diff'
9cadf8c @zenspider oops. didn't mean to commit this
zenspider authored
14 at.add_exception 'rubycorpus'
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
15
76421c8 @zenspider - Fixed .autotest for minitest
zenspider authored
16 at.libs << ':../../minitest/dev/lib'
17 at.testlib = "minitest/autorun"
00cbfcf @zenspider Excluded whitespace differences in unit diff for autotest.
zenspider authored
18
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
19 at.add_mapping(/^lib\/.*\.y$/) do |f, _|
20 at.files_matching %r%^test/.*#{File.basename(f, '.y').gsub '_', '_?'}.rb$%
21 end
22
23 at.add_mapping(/pt_testcase.rb/) do |f, _|
782e028 @zenspider Fixed autotest mapping
zenspider authored
24 at.files_matching(/test_.*rb$/)
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
25 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
26
27 %w(TestEnvironment TestStackState).each do |klass|
28 at.extra_class_map[klass] = "test/test_ruby_parser_extras.rb"
29 end
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
30
7f69c73 @zenspider Teach autotest about 18 and 19 parsers
zenspider authored
31 %w(TestRuby18Parser TestRuby19Parser TestParseTree).each do |klass| # HACK
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
32 at.extra_class_map[klass] = "test/test_ruby_parser.rb"
33 end
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
34 end
35
8dbd7b0 @zenspider fixed stupid warning in .autotest
zenspider authored
36 Autotest.add_hook :run_command do |at, _|
35a779c @zenspider + 1.9: Moved kRETURN/kBREAK/kNEXT from command_call to command
zenspider authored
37 system "rake parser DEBUG=1"
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
38 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
39
c7f28c7 @zenspider Added parser dependency for multi.
zenspider authored
40 class Autotest
41 def ruby
42 File.expand_path "~/.multiruby/install/1.9.0-0/bin/ruby"
43 end
44 end if ENV['ONENINE']
Something went wrong with that request. Please try again.