summaryrefslogtreecommitdiff
path: root/tests/modules/exec_test
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-08-20 09:12:44 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-08-20 09:12:44 +0200
commite2289e28a55f0f340103cf0cc99d08fc63f48887 (patch)
tree617e56816b2c8488aedcc7a4bffd7724b3eab6cf /tests/modules/exec_test
parentd9094a67ac5cfe0ca392746b62ac8fe9b18a8785 (diff)
downloadcrawler-e2289e28a55f0f340103cf0cc99d08fc63f48887.tar.gz
crawler-e2289e28a55f0f340103cf0cc99d08fc63f48887.tar.bz2
added a module test (Windows)
Diffstat (limited to 'tests/modules/exec_test')
-rwxr-xr-xtests/modules/exec_test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/modules/exec_test b/tests/modules/exec_test
new file mode 100755
index 0000000..d2d606f
--- /dev/null
+++ b/tests/modules/exec_test
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+BINARY=$1
+TITLE=$2
+
+printf "$BINARY: $TITLE .. "
+./$BINARY >$BINARY.RES 2>&1
+diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n"