diff options
author | Christoph Burschka | 2012-11-02 23:22:58 +0100 |
---|---|---|
committer | Christoph Burschka | 2012-11-02 23:22:58 +0100 |
commit | e12727c65eb0a623a22df373c8d69a620c387ff4 (patch) | |
tree | c5ebafb61e29e8db5060a369ffc75f2e4cd126d6 /tests/test | |
parent | Abort if phpBB 3.1 not installed; avoid error handler; set globals. (diff) | |
download | ejabberd-auth-php-e12727c65eb0a623a22df373c8d69a620c387ff4.tar.gz |
Make test script independent of CWD.
Diffstat (limited to 'tests/test')
-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 |