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
commit4027be405e40e9a625d87a431bd7c8cdf922877f (patch)
tree56dea4f07e4386399294f7812863f119020cf7d8 /t
parent55dd91a2eb8c2842a8c8bd9d4862bcb5d4e89a71 (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'