1
1
openmpi/test/asm/run_tests
2016-11-22 15:03:20 -08:00

28 строки
542 B
Bash

#!/bin/sh
retval=-1
progname="`basename $*`"
echo "--> Testing $progname"
for threads in 1 2 4 5 8 ; do
$* $threads
result=$?
if test "$result" = "0" ; then
echo " - $threads threads: Passed"
if test "$retval" = "-1" ; then
retval=0
fi
elif test "$result" = "77" ; then
echo " - $threads threads: Skipped"
if test "$retval" = "-1" ; then
retval=77
fi
else
echo " - $threads threads: Failed"
retval="$result"
fi
done
exit $retval