6 test_dir = File.expand_path(File.join(File.dirname(__FILE__)))
7 base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
8 top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", ".."))
10 ext_dir = File.join(base_dir, ".ext")
11 ext_svn_dir = File.join(ext_dir, "svn")
12 ext_svn_ext_dir = File.join(ext_svn_dir, "ext")
13 FileUtils.mkdir_p(ext_svn_dir)
14 at_exit {FileUtils.rm_rf(ext_dir)}
16 $LOAD_PATH.unshift(test_dir)
18 require 'test-unit-ext'
20 SvnTestUtil.setup_test_environment(top_dir, base_dir, ext_svn_ext_dir)
22 $LOAD_PATH.unshift(ext_dir)
23 $LOAD_PATH.unshift(base_dir)
24 $LOAD_PATH.unshift(test_dir)
29 if Test::Unit::AutoRunner.respond_to?(:standalone?)
30 exit Test::Unit::AutoRunner.run($0, File.dirname($0))
32 exit Test::Unit::AutoRunner.run(false, File.dirname($0))