summaryrefslogtreecommitdiffstats
path: root/common/scripts/ptest-lava-wrapper-all.sh
blob: f7a0b4d8df81a5ff482f68a8287acb2fe10cca0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Check if ptest packages are installed
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
    ptest-runner -L
    lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS
fi

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