summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/ruby/ruby/run-ptest
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2019-04-11 15:02:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-22 00:31:48 +0100
commit0e354a51844dc1e2262f426354748e4b76f51592 (patch)
treef8b7df2a35be6677422d968d01c8d376ecb01edd /meta/recipes-devtools/ruby/ruby/run-ptest
parent6e17a309e225605e028b6b2d3a55827bbe8339e2 (diff)
downloadpoky-0e354a51844dc1e2262f426354748e4b76f51592.tar.gz
ruby: add ptest
(From OE-Core rev: ed650ca30379279f6a0f1e8f9f728cc542504732) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby/run-ptest')
-rw-r--r--meta/recipes-devtools/ruby/ruby/run-ptest13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby/run-ptest b/meta/recipes-devtools/ruby/ruby/run-ptest
new file mode 100644
index 0000000000..de7c415aba
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/run-ptest
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3test_fullname=`find test -name test_*.rb`
4
5for i in ${test_fullname}; do
6 ruby ./test/runner.rb ${i} 2>&1 > /dev/null
7 ret=$?
8 if [ $ret != 0 ]; then
9 echo "FAIL: ${i}"
10 else
11 echo "PASS: ${i}"
12 fi
13done