X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=common%2Fscripts%2Fptest-lava-wrapper.sh;h=21635ce5fd5467d8dbf7b69fcbb23e83b7a7df4c;hb=refs%2Ftags%2F6.99.1;hp=0e9ef199b75a3209ada6507cc5e8bd2ae8c522c4;hpb=9e4c15e24032c8f0c209c1738ade6be6c878618f;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/ptest-lava-wrapper.sh b/common/scripts/ptest-lava-wrapper.sh index 0e9ef19..21635ce 100755 --- a/common/scripts/ptest-lava-wrapper.sh +++ b/common/scripts/ptest-lava-wrapper.sh @@ -1,17 +1,20 @@ #!/bin/bash -REQUIREDPTESTS="acl attr systemd cynara xmlsec1 libxml2 openssl openssh lua smack afb-test agl-service-signal-composer dbus-test" - +REQUIREDPTESTS="acl attr cynara xmlsec1 libxml2 lua smack" +# 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 # Run ptests for specified packages for unit in ${REQUIREDPTESTS}; do + lava-test-set start ptest-$unit UNIT_LOG=$(ptest-runner ${unit} 2> /dev/null) if [ $? -eq 0 ] ; then - lava-test-set start ptest-$unit # grep: Get only the ptests results, no log # sed 1: replace spaces by hyphens # sed 2: remove any special character @@ -20,7 +23,7 @@ else test_pass=$(echo "$UNIT_LOG" | grep -e 'PASS' | wc -l) test_fail=$(echo "$UNIT_LOG" | grep -e 'FAIL' | wc -l) lava-test-case ${unit}-passed-commands --result PASS --measurement $test_pass --units pass - if ! [ x"0" = x"$test_fail"] ; then + if ! [ x"0" = x"$test_fail" ] ; then lava-test-case ${unit}-failed-commands --result FAIL --measurement $test_fail --units fail echo "$UNIT_LOG" | grep -e 'FAIL' fi