summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorChristoph Burschka2012-10-30 02:45:21 +0100
committerChristoph Burschka2012-10-30 02:45:21 +0100
commit7fc3addf1b2796998fe0350cd4c5d7513612b1ba (patch)
treeda7b47008fc112e53aee5ab51b8a39f6be4f54f2 /tests/test
downloadejabberd-auth-php-7fc3addf1b2796998fe0350cd4c5d7513612b1ba.tar.gz
Initial checkin
Diffstat (limited to 'tests/test')
-rwxr-xr-xtests/test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test b/tests/test
new file mode 100755
index 0000000..4d68705
--- /dev/null
+++ b/tests/test
@@ -0,0 +1,10 @@
+php test.php > test.in
+php ../main.php <test.in>test.out
+if [ -z "$(diff test.out 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