summaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-19 09:07:13 -0500
committerNick Mathewson <nickm@torproject.org>2012-11-19 09:07:13 -0500
commitc142069098ce5e39e7c03a50172e5bd18b015330 (patch)
tree0982dbd51193f90fbe381d9a71c98811bf5e8d9c /test/test.sh
parentdc0287c473d3e33f8c6c0e6462ed336c6d7387da (diff)
downloadlibevent-c142069098ce5e39e7c03a50172e5bd18b015330.tar.gz
Fix a bug when running "make verify" out-of-treerelease-2.1.2-alpha
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
index d47bd2d8..a4f03eff 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -32,10 +32,16 @@ T=`echo "$0" | sed -e 's/test.sh$//'`
if test -x "$T/test-init"
then
TEST_DIR="$T"
+elif test -x "./test/test-init"
+then
+ TEST_DIR="./test"
fi
if test -f "$T/check-dumpevents.py"
then
TEST_SRC_DIR="$T"
+elif test -f "./test/check-dumpevents.py"
+then
+ TEST_SRC_DIR="./test"
fi
setup () {