openmpi/tests/sanity.sh
Honggang Li 2c518cec94 Enable gating test
Related: rhbz#1869443

Signed-off-by: Honggang Li <honli@redhat.com>
2021-07-20 10:21:59 -04:00

24 lines
347 B
Bash
Executable File

#!/bin/bash
#
# This is a simple sanity test to satisfy the RHEL8.1 onboard gating
# requirement.
ret=$?
source /etc/profile.d/modules.sh
module load mpi/openmpi-x86_64
ompi_info
let ret=$ret+$?
mpirun --version
let ret=$ret+$?
mpirun --allow-run-as-root hostname
let ret=$ret+$?
mpirun --allow-run-as-root uptime
let ret=$ret+$?
exit $ret