summaryrefslogtreecommitdiff
path: root/poky/meta/recipes-core/libxml/libxml2/run-ptest
blob: cbbdd5592f7fbb2fa426b500951699b2a70d0f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

export LC_ALL=en_US.UTF-8

# testModule isn't that useful and hard-codes buildtree, so we don't run that
TESTS="runtest runsuite testrecurse testchar testdict runxmlconf testapi testlimits testparser"

for T in $TESTS; do
    echo Running $T
    ./$T && echo PASS: $T || echo FAIL: $T
done

if test -d python/tests; then
    cd python/tests
    for T in *.py; do
        python3 ./$T && echo PASS: $T || echo FAIL: $T
    done
fi