diff options
author | Paul Vaduva <Paul.Vaduva@enea.com> | 2016-02-03 10:25:16 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-02-15 10:15:27 +0100 |
commit | 142d6fb402a5c6fad7bb0fd818c5d45b45eaf69d (patch) | |
tree | 51ce9c29eb3a06d2eea359ac11b65f4da9ca932c /meta-oe/recipes-devtools/lua/lua | |
parent | d3be014d9c1f3d9fa39739eb1d68db0ce344246b (diff) | |
download | meta-openembedded-contrib-142d6fb402a5c6fad7bb0fd818c5d45b45eaf69d.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-devtools/lua/lua')
-rw-r--r-- | meta-oe/recipes-devtools/lua/lua/run-ptest | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua/run-ptest b/meta-oe/recipes-devtools/lua/lua/run-ptest new file mode 100644 index 0000000000..8e085e1af9 --- /dev/null +++ b/meta-oe/recipes-devtools/lua/lua/run-ptest @@ -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 |