mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 16:11:50 +00:00
* use external cmocka instead of bundled cmocka * add run-ptest script Ptest results: $ ptest-runner libldb START: ptest-runner 2023-10-12T11:49 BEGIN: /usr/lib/libldb/ptest PASS: test_ldb_dn PASS: test_ldb_qsort DURATION: 0 END: /usr/lib/libldb/ptest 2023-10-12T11:49 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 lines
309 B
Bash
18 lines
309 B
Bash
#!/bin/sh
|
|
|
|
ptestdir=$(dirname "$(readlink -f "$0")")
|
|
cd "$ptestdir"/tests || exit
|
|
|
|
tests="test_ldb_dn test_ldb_qsort"
|
|
|
|
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
|