Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.167 kb
fd85890f » zenspider
2007-11-15 Added .autotest so it'll compile the grammar before testing.
1 # -*- ruby -*-
2
bb438f30 » zenspider
2008-08-16 Added restart and disabled rcov for now.
3 require 'autotest/restart'
5462f8bf » zenspider
2011-06-30 Isolated, fixed paths for PT->SP changes.
4 require 'autotest/isolate'
76421c8b » zenspider
2009-08-18 - Fixed .autotest for minitest
5 require 'autotest/rcov' if ENV['RCOV']
bb438f30 » zenspider
2008-08-16 Added restart and disabled rcov for now.
6
fd85890f » zenspider
2007-11-15 Added .autotest so it'll compile the grammar before testing.
7 Autotest.add_hook :initialize do |at|
5462f8bf » zenspider
2011-06-30 Isolated, fixed paths for PT->SP changes.
8 at.extra_files << "../../sexp_processor/dev/lib/pt_testcase.rb"
9 at.libs << ":../../sexp_processor/dev/lib"
86444485 » zenspider
2008-02-03 Switched .autotest to new API.
10 at.add_exception 'unit'
11 at.add_exception 'coverage'
12 at.add_exception 'coverage.info'
14f8e065 » zenspider
2009-04-02 + Updated .autotest and rakefile wrt rcov for new hoe capabilities
13 at.add_exception '.diff'
9cadf8c5 » zenspider
2012-08-07 oops. didn't mean to commit this
14 at.add_exception 'rubycorpus'
4e94bf2b » zenspider
2007-12-11 Made autotest file awesome.
15
76421c8b » zenspider
2009-08-18 - Fixed .autotest for minitest
16 at.libs << ':../../minitest/dev/lib'
17 at.testlib = "minitest/autorun"
00cbfcf6 » zenspider
2007-12-02 Excluded whitespace differences in unit diff for autotest.
18
4e94bf2b » zenspider
2007-12-11 Made autotest file awesome.
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, _|
782e028b » zenspider
2008-08-15 Fixed autotest mapping
24 at.files_matching(/test_.*rb$/)
4e94bf2b » zenspider
2007-12-11 Made autotest file awesome.
25 end
86444485 » zenspider
2008-02-03 Switched .autotest to new API.
26
27 %w(TestEnvironment TestStackState).each do |klass|
28 at.extra_class_map[klass] = "test/test_ruby_parser_extras.rb"
29 end
bb438f30 » zenspider
2008-08-16 Added restart and disabled rcov for now.
30
7f69c732 » zenspider
2011-11-03 Teach autotest about 18 and 19 parsers
31 %w(TestRuby18Parser TestRuby19Parser TestParseTree).each do |klass| # HACK
bb438f30 » zenspider
2008-08-16 Added restart and disabled rcov for now.
32 at.extra_class_map[klass] = "test/test_ruby_parser.rb"
33 end
fd85890f » zenspider
2007-11-15 Added .autotest so it'll compile the grammar before testing.
34 end
35
8dbd7b04 » zenspider
2012-06-26 fixed stupid warning in .autotest
36 Autotest.add_hook :run_command do |at, _|
35a779c9 » zenspider
2012-06-21 + 1.9: Moved kRETURN/kBREAK/kNEXT from command_call to command
37 system "rake parser DEBUG=1"
fd85890f » zenspider
2007-11-15 Added .autotest so it'll compile the grammar before testing.
38 end
86444485 » zenspider
2008-02-03 Switched .autotest to new API.
39
c7f28c70 » zenspider
2008-03-08 Added parser dependency for multi.
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.