]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libseccomp: fix for the ptest result format
authorNarpat Mali <narpat.mali@windriver.com>
Tue, 14 Feb 2023 10:53:47 +0000 (10:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Feb 2023 07:47:40 +0000 (07:47 +0000)
The output of libseccomp ptest should follow a unified format as
per this https://wiki.yoctoproject.org/wiki/Ptest

Replaced the test results SUCCESS, FAILURE & SKIPPPED with PASS,
FAIL & SKIP and printing the ptest result with the below format
result: testname

Signed-off-by: Narpat Mali <narpat.mali@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libseccomp/files/run-ptest

index 54b4a63cd2cd8b7ee8dd7b4acfd85f5a54c156ab..63c79f09c4d7f1dd5e9881cdb5a6ef4bd8d6bf81 100644 (file)
@@ -1,4 +1,7 @@
 #!/bin/sh
 
 cd tests
+sed -i 's/SUCCESS/PASS/g; s/FAILURE/FAIL/g; s/SKIPPED/SKIP/g' regression
+sed -i 's/"Test %s result:   %s\\n" "$1" "$2"/"%s: %s\\n" "$2" "$1"/g' regression
+sed -i 's/"Test %s result:   %s %s\\n" "$1" "$2" "$3"/"%s: %s %s\\n" "$2" "$1" "$3"/g' regression
 ./regression -a