perftest/tests/sanity.sh
2024-08-09 15:32:36 -04:00

16 lines
315 B
Bash
Executable File

#!/bin/bash
#
# This is a simple sanity test to satisfy the RHEL8.1 onboard gating
# requirement.
ib_atomic_bw --version
ret=$?
# for reasons I have not investigated, at least on hosts without any rdma
# hardware, the above returns 1 instead of 0 (as does --help)
if [ "$ret" -eq 1 ]; then
exit 0
fi
exit $ret