diff options
author | yanxk <yanxk.fnst@fujitsu.com> | 2023-02-09 08:54:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-10 09:25:08 +0000 |
commit | 9661e76aa1ea89b3dcc24a4d69fa7e6161873d7f (patch) | |
tree | b2ea319219d9220b0657eb0232dbd4c341829fb4 /meta/recipes-extended/cpio/cpio-2.13/run-ptest | |
parent | f6c260c8e2a33e282a35afc99de4ef8cc1791b08 (diff) | |
download | openembedded-core-contrib-9661e76aa1ea89b3dcc24a4d69fa7e6161873d7f.tar.gz |
cpio: Add ptest support
Add ptest function for oss 'cpio'.
Tis test takes less than 1 second with kvm enabled, so it is a fast test.
autotest files would contain TMPDIR, they are removed from script files
atconfig and atlocal.
Signed-off-by: yanxk <yanxk.fnst@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'meta/recipes-extended/cpio/cpio-2.13/run-ptest')
-rw-r--r-- | meta/recipes-extended/cpio/cpio-2.13/run-ptest | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-extended/cpio/cpio-2.13/run-ptest b/meta/recipes-extended/cpio/cpio-2.13/run-ptest new file mode 100644 index 0000000000..bdac7259c1 --- /dev/null +++ b/meta/recipes-extended/cpio/cpio-2.13/run-ptest @@ -0,0 +1,10 @@ +#!/bin/sh + +# Define cpio test work dir +WORKDIR=/usr/lib/cpio/ptest/tests/ + +# Run test +cd ${WORKDIR} +./atconfig ./atlocal ./testsuite + +./testsuite 2>&1 | grep -E '[0-9]{1,3}: ' | sed -e 's/^.....//' -e '/[ok]$/s/^/PASS: /;/FAILED (.*)/s/^/FAIL: /;/skipped (.*)/s/^/SKIP: /;/expected failure/ s/^/PASS: /;/UNEXPECTED PASS/s/^/FAIL: /' -e 's/ok$//g' -e 's/FAILED.*//g' -e 's/skipped.*//g' -e 's/expected failure.*//g' -e 's/UNEXPECTED PASS.*//g' |