From 1712fa4839d373fb0f9ea7d92925a57a9aee4c52 Mon Sep 17 00:00:00 2001 From: Qiu Tingting Date: Wed, 28 Jun 2023 10:53:25 +0800 Subject: kbd: Add ptest support 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 Change-Id: I98d0781239f17b01bb9cba3f06a3dfc100fc201f --- meta-agl-test/recipes-core/kbd/files/run-ptest | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-agl-test/recipes-core/kbd/files/run-ptest (limited to 'meta-agl-test/recipes-core/kbd/files/run-ptest') 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.*//' + -- cgit 1.2.3-korg