summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/lua/lua/run-ptest
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-09-08 20:01:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-11 18:41:37 +0100
commit5196cfbbf8795e16b5bc606a9e348fcc6bf3cc83 (patch)
tree95b3a4f0f4308ff5ece313b5f638c15e9f6562b9 /meta/recipes-devtools/lua/lua/run-ptest
parent801a17bfbe6b2296c2bbf303d864b091602efbe3 (diff)
downloadpoky-5196cfbbf8795e16b5bc606a9e348fcc6bf3cc83.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/lua/lua/run-ptest')
-rw-r--r--meta/recipes-devtools/lua/lua/run-ptest19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/lua/lua/run-ptest b/meta/recipes-devtools/lua/lua/run-ptest
new file mode 100644
index 0000000000..8e085e1af9
--- /dev/null
+++ b/meta/recipes-devtools/lua/lua/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