#!/bin/sh

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

# Any individual failure is overall failure
exitcode=0
# 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

for testname in "$testsdir"/*_test; do
    "$testname" "$@" || exitcode=1
done

exit $exitcode

