diff options
Diffstat (limited to 'meta-oe/recipes-devtools/lua/lua-test/run-ptest')
| -rw-r--r-- | meta-oe/recipes-devtools/lua/lua-test/run-ptest | 19 |
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 | |||
| 3 | cd test | ||
| 4 | lua -e"_U=true" all.lua > lua-test.tmp | ||
| 5 | |||
| 6 | echo "--- test output ---" | ||
| 7 | cat lua-test.tmp | ||
| 8 | echo "" | ||
| 9 | echo "" | ||
| 10 | echo "--- ptest result ---" | ||
| 11 | |||
| 12 | grep "final OK \!\!\!" lua-test.tmp > /dev/null | ||
| 13 | if [ $? -eq 0 ]; then | ||
| 14 | echo "PASS: lua" | ||
| 15 | else | ||
| 16 | echo "FAIL: lua" | ||
| 17 | fi | ||
| 18 | |||
| 19 | rm -f lua-test.tmp | ||
