diff options
| author | Chong Lu <Chong.Lu@windriver.com> | 2014-02-20 18:55:10 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-21 16:09:08 +0000 |
| commit | dffa543035e66b5b67afbdff64ebba5772cfb1af (patch) | |
| tree | 9a0c1f4b6a27e7d3ac644419a2e53f11b394162b /meta/recipes-devtools/insserv/files/run-ptest | |
| parent | 4590a00af50cc69e120a5a186e87c4abf43bb9ca (diff) | |
| download | poky-dffa543035e66b5b67afbdff64ebba5772cfb1af.tar.gz | |
insserv: enable ptest support
Install insserv test suite and run it as ptest.
(From OE-Core rev: 5bb786241907bb0304edb25ac1d398b3ae7f3be0)
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/insserv/files/run-ptest')
| -rw-r--r-- | meta/recipes-devtools/insserv/files/run-ptest | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/insserv/files/run-ptest b/meta/recipes-devtools/insserv/files/run-ptest new file mode 100644 index 0000000000..495d1551c2 --- /dev/null +++ b/meta/recipes-devtools/insserv/files/run-ptest | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | basedir=$(dirname $0) | ||
| 4 | . $basedir/common | ||
| 5 | |||
| 6 | output() { | ||
| 7 | if [ $? -eq 0 ]; \ | ||
| 8 | then echo "PASS: $i"; \ | ||
| 9 | else echo "FAIL: $i"; \ | ||
| 10 | fi; | ||
| 11 | } | ||
| 12 | |||
| 13 | for i in test_simple_sequence test_undetected_loop; \ | ||
| 14 | do $i &>/dev/null ; output; \ | ||
| 15 | done | ||
| 16 | |||
| 17 | rm -rf ${tmpdir} | ||
