8e6e87944a768b5b3d49554ad487e1cc87b535fe
[src/qa-testdefinitions.git] / common / scripts / ptest-lava-wrapper.sh
1 #!/bin/bash
2
3 REQUIREDPTESTS="acl attr cynara xmlsec1 libxml2 lua smack"
4 # NOT: systemd openssl openssh
5 # Check if ptest packages are installed
6
7 echo "Testing these components: $REQUIREDPTESTS"
8
9 command -v ptest-runner >/dev/null 2>&1
10 if [ $? -ne 0 ] ; then
11     lava-test-case ptest-installed --result SKIP
12 else
13     # Run ptests for specified packages
14     for unit in ${REQUIREDPTESTS}; do
15         ptest-runner -L ${unit}
16     done
17
18     lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS
19 fi
20
21 # Wait for LAVA to parse all the tests from stdout
22 sleep 15