File: run-tests

package info (click to toggle)
rocprim 6.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,428 kB
  • sloc: cpp: 153,383; python: 1,397; sh: 404; xml: 217; makefile: 119
file content (15 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

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

# Any individual failure is overall failure
exitcode=0
for testname in "$testsdir"/test*; do
    # If autopkgtest called us, pass some extra options if not set
    if [ -n "$AUTOPKGTEST_ARTIFACTS" ]; then
        # Save output as XML to artifacts, for download
        [ -n "${GTEST_OUTPUT:-}" ] || export GTEST_OUTPUT="xml:${AUTOPKGTEST_ARTIFACTS}/"
    fi
	$testname "$@" || exitcode=1
done
exit $exitcode