Commit Diff


commit - 4f8ac179bf96c9eab40657773b39fe8f908cfa2f
commit + 9ddb93478491336d531a1705a199c6e3cb27ca60
blob - 401a55da8b057cd975acab61c73a2dbe99cfeae3
blob + 31d99d9d971c526770e94fdff7aac56c0f8c1963
--- src/testsuite/tests.sh
+++ src/testsuite/tests.sh
@@ -1,7 +1,10 @@
 #!/bin/sh
 # ngIRCd Test Suite
-# $Id: tests.sh,v 1.4 2003/08/22 11:31:18 alex Exp $
+# $Id: tests.sh,v 1.5 2004/09/04 14:22:38 alex Exp $
 
+# detect source directory
+[ -z "$srcdir" ] && srcdir=`dirname $0`
+
 name=`basename $0`
 test=`echo ${name} | cut -d '.' -f 1`
 mkdir -p logs