2004-11-20 08:58:20 -05:00
|
|
|
require 'rbconfig'
|
|
|
|
exit if CROSS_COMPILING
|
2008-10-15 00:16:28 -04:00
|
|
|
|
2008-10-16 09:55:09 -04:00
|
|
|
require 'test/unit'
|
2008-10-19 11:59:35 -04:00
|
|
|
|
|
|
|
src_testdir = File.dirname(File.expand_path(__FILE__))
|
|
|
|
srcdir = File.dirname(src_testdir)
|
|
|
|
|
2010-09-16 08:40:40 -04:00
|
|
|
tests = Test::Unit.new {|files, options|
|
|
|
|
options[:base_directory] = src_testdir
|
2008-10-19 11:59:35 -04:00
|
|
|
if files.empty?
|
|
|
|
[src_testdir]
|
|
|
|
else
|
2010-09-16 08:40:40 -04:00
|
|
|
files
|
2008-10-19 11:59:35 -04:00
|
|
|
end
|
|
|
|
}
|
2010-07-17 06:01:49 -04:00
|
|
|
exit tests.run(ARGV) || true
|