summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test')
-rwxr-xr-xtests/test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test b/tests/test
index 4d68705..72a72ad 100755
--- a/tests/test
+++ b/tests/test
@@ -1,10 +1,11 @@
-php test.php > test.in
-php ../main.php <test.in>test.out
-if [ -z "$(diff test.out test.successful)" ]
+p=`dirname $0`
+php $p/test.php > $p/test.in
+php $p/../main.php <$p/test.in>$p/test.out
+if [ -z "$(diff $p/test.out $p/test.successful)" ]
then
echo "Test successful."
else
echo "Test unsuccessful. Check activity logs."
fi
-rm test.in test.out \ No newline at end of file
+rm $p/test.in $p/test.out \ No newline at end of file