2004-11-20 16:58:20 +03:00
|
|
|
require 'rbconfig'
|
|
|
|
exit if CROSS_COMPILING
|
2008-10-15 08:16:28 +04:00
|
|
|
|
2008-10-16 17:55:09 +04:00
|
|
|
require 'test/unit'
|
2008-10-19 19: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-20 04:48:24 +04:00
|
|
|
if File.exist? "#{src_testdir}/#{f}"
|
2008-10-19 19:59:35 +04:00
|
|
|
"#{src_testdir}/#{f}"
|
|
|
|
elsif File.exist? "#{srcdir}/#{f}"
|
|
|
|
"#{srcdir}/#{f}"
|
2008-10-20 04:48:24 +04:00
|
|
|
elsif File.exist? f
|
|
|
|
f
|
2008-10-19 19:59:35 +04:00
|
|
|
else
|
|
|
|
raise ArgumentError, "not found: #{f}"
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|