1
1
openmpi/test/asm/run_tests
Brian Barrett 63bd314a0b * Update ASM tests to do more thread testing (which should help find bugs)
* Update cmpset test to call memory barrier when needed before checking the
  results
* remove unneeded sync from cmpset_32 on Power PC

This commit was SVN r5420.
2005-04-18 19:33:23 +00: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