summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
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