summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2014-12-11 12:42:10 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2014-12-11 12:42:10 +0000
commit438cd474003180db5207f25965a39a267f52cc11 (patch)
treeb84c48c614d8563126ce576083f9c4ef1a0af1cb /t
parent47fbebd14f0bd67a05e3a433d2b48e991e41020b (diff)
Tidied up test suite include path
Diffstat (limited to 't')
-rwxr-xr-xt/test-suite10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/test-suite b/t/test-suite
index 9b5ea0b..9500052 100755
--- a/t/test-suite
+++ b/t/test-suite
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby -I../bin/ -I./bin/ -Ilib/ -I../lib/
+#!/usr/bin/ruby
#
# This is a simple wrapper that will run the complete test-suite.
#
@@ -6,7 +6,13 @@
# --
#
-
+#
+# Set up our include path
+#
+base = File.dirname(__FILE__)
+%w(bin lib .).each do |d|
+ $: << File.expand_path(File.join(base, "../#{d}"))
+end
require 'test/unit'
require 'fileutils'