summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/lua/lua-test/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/lua/lua-test/run-ptest')
-rw-r--r--meta-oe/recipes-devtools/lua/lua-test/run-ptest19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua-test/run-ptest b/meta-oe/recipes-devtools/lua/lua-test/run-ptest
new file mode 100644
index 0000000000..8e085e1af9
--- /dev/null
+++ b/meta-oe/recipes-devtools/lua/lua-test/run-ptest
@@ -0,0 +1,19 @@
1#!/bin/sh
2
3cd test
4lua -e"_U=true" all.lua > lua-test.tmp
5
6echo "--- test output ---"
7cat lua-test.tmp
8echo ""
9echo ""
10echo "--- ptest result ---"
11
12grep "final OK \!\!\!" lua-test.tmp > /dev/null
13if [ $? -eq 0 ]; then
14 echo "PASS: lua"
15else
16 echo "FAIL: lua"
17fi
18
19rm -f lua-test.tmp