openvpn: change ptest output format

The format selected is the automake "simple test" format: "result: testname".

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jiaying Song 2025-08-21 17:06:06 +08:00 committed by Khem Raj
parent 8fe9d51b11
commit 8e28287dde
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -1,5 +1,8 @@
#!/bin/sh
for x in `find ./ -name Makefile`;
do
make -C `dirname ${x}` -k runtest-TESTS
find ./ -name Makefile | while read -r x; do
make -C "$(dirname "${x}")" -k runtest-TESTS | sed \
-e 's/^\(\[ OK \].*\)$/PASS: \1/' \
-e 's/^\(\[ FAILED \].*\)$/FAIL: \1/' \
-e 's/^\(\[ SKIPPED \].*\)$/SKIP: \1/'
done