diff options
author | Qiu Tingting <qiutt@fujitsu.com> | 2023-06-28 10:53:25 +0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-07-18 18:09:16 +0000 |
commit | 1712fa4839d373fb0f9ea7d92925a57a9aee4c52 (patch) | |
tree | 6779ca1c31b66069e030228fcce26dc0b60e682c /meta-agl-test/recipes-core/kbd/files | |
parent | abe0dd1124c58d10c3156091cdd99651ee5439d5 (diff) |
kbd: Add ptest supportpike_15.92.0pike/15.92.015.92.0
Add a ptest for kbd.
It is a backport for
https://lists.openembedded.org/g/openembedded-core/topic/patch_v4_kbd_add_ptest/99258821
It should be deleted after yocto version up.
SPEC-4753
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Change-Id: I98d0781239f17b01bb9cba3f06a3dfc100fc201f
Diffstat (limited to 'meta-agl-test/recipes-core/kbd/files')
-rw-r--r-- | meta-agl-test/recipes-core/kbd/files/run-ptest | 12 |
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.*//' + |