aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libtdb/libtdb/run-ptest
blob: 7bc56f77c007f7b15ea37732b1f8034cb9442609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

ptestdir=$(dirname "$(readlink -f "$0")")
cd "$ptestdir"/tests || exit

tests=$(find * -type f -name 'tdb1-*')

for f in replace_testsuite $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