add run-all script

This commit is contained in:
Carl Pearson
2021-04-30 14:53:32 -06:00
parent 1ad1972a5e
commit 502556c0f6

16
run-all.sh Executable file
View File

@@ -0,0 +1,16 @@
#! /bin/bash
# ./run-all.sh | grep 'PASS\|FAIL'
run_test() {
mpirun -n 4 $1 && echo PASS: mpirun -n 4 $1 || echo FAIL: mpirun -n 4 $1
}
# test that we can run something
run_test hostname
# rotate an integer around ranks
run_test ./main
# rotate with mpi-put
run_test ./one-sided