Paul Vaduva 142d6fb402 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>
2016-02-15 10:15:27 +01:00

20 lines
286 B
Bash

#!/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