Files
yoctor-layers/meta-openembedded/meta-oe/recipes-extended/libyang/libyang/run-ptest
2024-07-11 14:16:35 +02:00

19 lines
340 B
Bash

#!/bin/sh
# cd into right directory
ptestdir=$(dirname "$(readlink -f "$0")")
cd "$ptestdir"/tests || exit
tests=$(find * -type f -name 'utest_*')
for f in $tests
do
if test -x ./"$f"; then
if ./"$f" > ./"$f".out 2> ./"$f".err; then
echo "PASS: $f"
else
echo "FAIL: $f"
fi
fi
done