diff options
-rwxr-xr-x | tests/test | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |