summaryrefslogtreecommitdiffstats
path: root/meta-agl-test/recipes-core/kbd/files/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-test/recipes-core/kbd/files/run-ptest')
-rw-r--r--meta-agl-test/recipes-core/kbd/files/run-ptest12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-core/kbd/files/run-ptest b/meta-agl-test/recipes-core/kbd/files/run-ptest
new file mode 100644
index 00000000..0eab90ea
--- /dev/null
+++ b/meta-agl-test/recipes-core/kbd/files/run-ptest
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Define test work dir
+WORKDIR=@PTEST_PATH@/tests/
+
+# Run test
+cd ${WORKDIR}
+
+./testsuite -k unittest | sed -e '/[0-9]:/s/://' \
+ -e '/ ok/s/^/PASS: /;/ FAILED/s/^/FAIL: /;/ skipped/s/^/SKIP: /' \
+ -e '/ ok/s/ ok.*//;/ skipped/s/ skipped.*//;/ FAILED/s/ FAILED.*//'
+