summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2/run-ptest
blob: f252a78f179f7e58ab71c3d7dd1cbb9af574d341 (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 testThreads runxmlconf testapi"

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