From efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 01:17:11 +0800 Subject: + tolua + lpeg --- .../luajit-2.1/src/x64/test/unit_test.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh (limited to 'ThirdParty/tolua_runtime/luajit-2.1/src/x64/test/unit_test.sh') 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 -- cgit v1.1-26-g67d0