From dffa543035e66b5b67afbdff64ebba5772cfb1af Mon Sep 17 00:00:00 2001 From: Chong Lu Date: Thu, 20 Feb 2014 18:55:10 +0800 Subject: insserv: enable ptest support Install insserv test suite and run it as ptest. (From OE-Core rev: 5bb786241907bb0304edb25ac1d398b3ae7f3be0) Signed-off-by: Chong Lu Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-devtools/insserv/files/run-ptest | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta/recipes-devtools/insserv/files/run-ptest (limited to 'meta/recipes-devtools/insserv/files') 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 @@ +#!/bin/sh + +basedir=$(dirname $0) +. $basedir/common + +output() { + if [ $? -eq 0 ]; \ + then echo "PASS: $i"; \ + else echo "FAIL: $i"; \ + fi; +} + +for i in test_simple_sequence test_undetected_loop; \ + do $i &>/dev/null ; output; \ +done + +rm -rf ${tmpdir} -- cgit v1.2.3-54-g00ecf