#!/bin/sh
set -ex

# Just checking the existence of them since some
# of them does not support '--help' and starts running
# the tests instead (those are already covered in autopkgtest
# of individual package)
[ -f /usr/libexec/rocm/librocblas5-tests/run-tests ]
[ -f /usr/libexec/rocm/libhipblas3-tests/run-tests ]
# No standard run-tests available yet for hipcub
[ -d /usr/libexec/rocm/libhipcub-tests ]
[ -f /usr/libexec/rocm/libhipfft0-tests/run-tests ]
[ -f /usr/libexec/rocm/libhiprand1-tests/run-tests ]
[ -f /usr/libexec/rocm/libhipsparse4-tests/run-tests ]
# No standard run-tests available yet for miopen
[ -d /usr/libexec/rocm/libmiopen1-tests ]
# No standard run-tests available yet for rccl
[ -d /usr/libexec/rocm/librccl1-tests ]
[ -f /usr/libexec/rocm/librocfft0-tests/run-tests ]
[ -f /usr/libexec/rocm/librocprim-tests/run-tests ]
[ -f /usr/libexec/rocm/librocsolver0-tests/run-tests ]
[ -f /usr/libexec/rocm/librocsparse1-tests/run-tests ]
# No standard run-tests available yet for rocthrust
[ -d /usr/libexec/rocm/librocthrust-tests ]

echo "Test binaries exists"
