File: run-tests

package info (click to toggle)
hiprand 6.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,096 kB
  • sloc: cpp: 5,155; f90: 2,513; python: 889; sh: 345; makefile: 49; xml: 10
file content (16 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

testsdir="/usr/libexec/rocm/libhiprand1-tests"

# Any individual failure is overall failure
exitcode=0
for testname in "$testsdir"/test*; do
    if [ -n "$AUTOPKGTEST_ARTIFACTS" ]; then
        # autopkgtest called us, save output to artifacts
        "$testname" --gtest_output=xml:"${AUTOPKGTEST_ARTIFACTS}"/ || exitcode=1
    else
        # Something else called us, pass on all arguments to the test binaries
        "$testname" "$@" || exitcode=1
    fi
done
exit $exitcode