diff options
Diffstat (limited to 'ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh')
-rw-r--r-- | ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh b/ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh new file mode 100644 index 0000000..c6633ca --- /dev/null +++ b/ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh @@ -0,0 +1,22 @@ +#!/bin/sh +DIR=$(cd $(dirname $0); pwd) +cd $DIR + +LUAJIT=$DIR/../../luajit +HASERR=0 + +find $DIR/unit -name "*.lua" -print | while read x; do + $LUAJIT $x >/dev/null 2>/dev/null + if [ $? -eq 0 ]; then + echo "$x ok" + else + HASERR=1 + echo "$x failed" + fi +done + +if [ $HASERR -eq 0 ]; then + exit 0 +fi + +exit 1 |