summaryrefslogtreecommitdiffstats
path: root/bin/testrb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
commite3ecad11840d11d6cf6f2cc88d374a673081379c (patch)
tree5eaee7e1c2ed82189f71b1102a43198ea4956b4d /bin/testrb
parent9124cc822046fb694a4e8b6013f300c8a5132676 (diff)
downloadruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.tar.gz
ruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.tar.xz
ruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.zip
* bin/testrb: new test runner. [ruby-core:01845]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run, Test::Unit::AutoRunner#initialize): take test list to run. * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS, Test::Unit::AutoRunner#run): should not exit inside a library, just return the result instead. * lib/test/unit.rb: ditto. * test/runner.rb: exit with the test result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin/testrb')
-rwxr-xr-xbin/testrb5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/testrb b/bin/testrb
new file mode 100755
index 000000000..ff49cb546
--- /dev/null
+++ b/bin/testrb
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+require 'test/unit'
+(r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or
+ abort r.options.banner + " tests..."
+exit r.run