Files
poky/meta/recipes-devtools/lua/lua/run-ptest
Alexander Kanavin 5196cfbbf8 lua: add a recipe from meta-oe
Lua is a hard dependency in rpm 4.17.

(From OE-Core rev: b06a2ffb5ded807dbb30078d10740ec294732cad)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-11 18:41:37 +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