mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-22 23:10:18 +00:00
run-ptest piped ctest output through 'sed -u', which busybox sed does not support, so the pipeline produced no output and the ptest image reported "ptests which had no test results: ['jsoncpp']". Drop sed and classify ctest result lines in awk directly. This also maps Timeout/Exception/Not Run results to FAIL; previously they were printed as e.g. "Exception:: <name>" and ignored by the ptest parser. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
12 lines
401 B
Bash
12 lines
401 B
Bash
#!/bin/sh
|
|
|
|
cd src
|
|
# ctest result lines look like: "1/3 Test #1: jsoncpp_test ..... Passed 0.01 sec"
|
|
# anything other than Passed/Skipped/Disabled (Failed, Timeout, Exception, Not Run) is a FAIL
|
|
ctest --force-new-ctest-process | awk '/Test +#[0-9]+:/ {
|
|
if ($0 ~ /Passed/) res = "PASS"
|
|
else if ($0 ~ /Skipped|Disabled/) res = "SKIP"
|
|
else res = "FAIL"
|
|
print res ": " $4; fflush()
|
|
}'
|