diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-04-11 15:02:33 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-11 21:19:27 +0100 |
commit | 46f47b700ef7f58c8095db9bd3b4b867a6447360 (patch) | |
tree | 852d321d326d6a5fa69476354594c66a75754079 /meta/recipes-devtools/ruby/ruby/run-ptest | |
parent | 55acc9b477919208d91781dbe9a03136f895a94b (diff) | |
download | openembedded-core-contrib-46f47b700ef7f58c8095db9bd3b4b867a6447360.tar.gz |
ruby: add ptest
Signed-off-by: Changqing Li <changqing.li@windriver.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-ptest | 13 |
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 @@ +#!/bin/sh + +test_fullname=`find test -name test_*.rb` + +for i in ${test_fullname}; do + ruby ./test/runner.rb ${i} 2>&1 > /dev/null + ret=$? + if [ $ret != 0 ]; then + echo "FAIL: ${i}" + else + echo "PASS: ${i}" + fi +done |