summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cpio/cpio-2.13/run-ptest
blob: bdac7259c10904412df216bf7009bc48d298b881 (plain)
1
2
3
4
5
6
7
8
9
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'