debian/bin/run-tests
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | testsdir="/usr/libexec/rocm/libhiprand1-tests" |
| 4 | |
| 5 | # Any individual failure is overall failure |
| 6 | exitcode=0 |
| 7 | for testname in "$testsdir"/test*; do |
| 8 | if [ -n "$AUTOPKGTEST_ARTIFACTS" ]; then |
| 9 | # autopkgtest called us, save output to artifacts |
| 10 | "$testname" --gtest_output=xml:"${AUTOPKGTEST_ARTIFACTS}"/ || exitcode=1 |
| 11 | else |
| 12 | # Something else called us, pass on all arguments to the test binaries |
| 13 | "$testname" "$@" || exitcode=1 |
| 14 | fi |
| 15 | done |
| 16 | exit $exitcode |