Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (34 sloc) 1.132 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'
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
14
76421c8 @zenspider - Fixed .autotest for minitest
zenspider authored
15 at.libs << ':../../minitest/dev/lib'
16 at.testlib = "minitest/autorun"
00cbfcf @zenspider Excluded whitespace differences in unit diff for autotest.
zenspider authored
17
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
18 at.add_mapping(/^lib\/.*\.y$/) do |f, _|
19 at.files_matching %r%^test/.*#{File.basename(f, '.y').gsub '_', '_?'}.rb$%
20 end
21
22 at.add_mapping(/pt_testcase.rb/) do |f, _|
782e028 @zenspider Fixed autotest mapping
zenspider authored
23 at.files_matching(/test_.*rb$/)
4e94bf2 @zenspider Made autotest file awesome.
zenspider authored
24 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
25
26 %w(TestEnvironment TestStackState).each do |klass|
27 at.extra_class_map[klass] = "test/test_ruby_parser_extras.rb"
28 end
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
29
7f69c73 @zenspider Teach autotest about 18 and 19 parsers
zenspider authored
30 %w(TestRuby18Parser TestRuby19Parser TestParseTree).each do |klass| # HACK
bb438f3 @zenspider Added restart and disabled rcov for now.
zenspider authored
31 at.extra_class_map[klass] = "test/test_ruby_parser.rb"
32 end
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
33 end
34
35 Autotest.add_hook :run_command do |at|
35a779c @zenspider + 1.9: Moved kRETURN/kBREAK/kNEXT from command_call to command
zenspider authored
36 system "rake parser DEBUG=1"
fd85890 @zenspider Added .autotest so it'll compile the grammar before testing.
zenspider authored
37 end
8644448 @zenspider Switched .autotest to new API.
zenspider authored
38
c7f28c7 @zenspider Added parser dependency for multi.
zenspider authored
39 class Autotest
40 def ruby
41 File.expand_path "~/.multiruby/install/1.9.0-0/bin/ruby"
42 end
43 end if ENV['ONENINE']
Something went wrong with that request. Please try again.