lua: Added ptest for lua

Signed-off-by: Andreas Sundstr
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Paul Vaduva authored and Martin Jansa committed 2016-02-15 10:15:27 +01:00
1 parent d3be014d9c
commit 142d6fb402
2 files changed
+34 -5

No files matched your search

@@ -0,0 +1,19 @@
#!/bin/sh
cd test
lua -e"_U=true" all.lua > lua-test.tmp
echo "--- test output ---"
cat lua-test.tmp
echo ""
echo ""
echo "--- ptest result ---"
grep "final OK \!\!\!" lua-test.tmp > /dev/null
if [ $? -eq 0 ]; then
echo "PASS: lua"
else
echo "FAIL: lua"
fi
rm -f lua-test.tmp