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-12 09:29:06 +0100 |
commit | dcfef9fef02f7d122a21c9df47c906fdf1ca0097 (patch) | |
tree | 88258045f3d460a3a1f8ed162d86a7e32487d419 /meta/recipes-devtools/ruby/ruby/run-ptest | |
parent | 99ec53a051b4118631f91250775e1ca16ccb315b (diff) | |
download | poky-dcfef9fef02f7d122a21c9df47c906fdf1ca0097.tar.gz |
ruby: add ptest
(From OE-Core rev: 46f47b700ef7f58c8095db9bd3b4b867a6447360)
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | test_fullname=`find test -name test_*.rb` | ||
4 | |||
5 | for 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 | ||
13 | done | ||