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)
|
|
|
|
|
|
|
|
Test::Unit.setup_argv {|files|
|
|
|
|
if files.empty?
|
|
|
|
[src_testdir]
|
|
|
|
else
|
|
|
|
files.map {|f|
|
2008-10-19 20:48:24 -04:00
|
|
|
if File.exist? "#{src_testdir}/#{f}"
|
2008-10-19 11:59:35 -04:00
|
|
|
"#{src_testdir}/#{f}"
|
|
|
|
elsif File.exist? "#{srcdir}/#{f}"
|
|
|
|
"#{srcdir}/#{f}"
|
2008-10-19 20:48:24 -04:00
|
|
|
elsif File.exist? f
|
|
|
|
f
|
2008-10-19 11:59:35 -04:00
|
|
|
else
|
|
|
|
raise ArgumentError, "not found: #{f}"
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|