aboutsummaryrefslogtreecommitdiffstats
path: root/common/scripts/ptest-lava-wrapper.sh
blob: 2c21b73385496ffee90813e5f46a81debd90a8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

REQUIREDPTESTS="acl attr cynara xmlsec1 libxml2 lua"
# NOT: systemd openssl openssh
# Check if ptest packages are installed

echo "Testing these components: $REQUIREDPTESTS"

command -v ptest-runner >/dev/null 2>&1
if [ $? -ne 0 ] ; then
    lava-test-case ptest-installed --result SKIP
else
    lava-test-case ptest-installed --result PASS

    # Run ptests for specified packages
    for unit in ${REQUIREDPTESTS}; do
	ptest-runner -L ${unit}
    done

    lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS
fi

# Wait for LAVA to parse all the tests from stdout
sleep 15