summaryrefslogtreecommitdiff
path: root/tests/tolua/exec_test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tolua/exec_test')
-rw-r--r--tests/tolua/exec_test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tolua/exec_test b/tests/tolua/exec_test
new file mode 100644
index 0000000..5b29fc8
--- /dev/null
+++ b/tests/tolua/exec_test
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+BINARY=$1
+TITLE=$2
+
+printf "$BINARY: $TITLE .. "
+LD_LIBRARY_PATH=../../src:../../src/liblogger:../../src/libcrawler:../../src/libluaglue:libcommon ./$BINARY >$BINARY.RES 2>&1
+diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n"