From 438cd474003180db5207f25965a39a267f52cc11 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Thu, 11 Dec 2014 12:42:10 +0000 Subject: Tidied up test suite include path --- t/test-suite | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 't/test-suite') 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' -- cgit v1.2.1