04aa51c9f28667f8831801b19749776ee990078a
[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     lava-test-case ptest-installed --result PASS
14
15     # Run ptests for specified packages
16     for unit in ${REQUIREDPTESTS}; do
17         ptest-runner -L ${unit}
18     done
19
20     lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS
21 fi
22
23 # Wait for LAVA to parse all the tests from stdout
24 sleep 15