Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67255049
runtests.bgp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jun 21, 05:41
Size
791 B
Mime Type
text/x-shellscript
Expires
Sun, Jun 23, 05:41 (2 d)
Engine
blob
Format
Raw Data
Handle
18357140
Attached To
rSPCLIBS SPClibs
runtests.bgp
View Options
#!/bin/sh
part=$1
part=${part:?"missing (R00-M0-00 for example)"}
d=`pwd`
b=$d/../bin
w=/bgscratch/$USER
cd $w
rm -f *.h5
cp -p $d/*.out ./
cp -p $d/*.in ./
EXEC="mpirun -nofree -mode VN -np 1 -cwd $w -partition $part -exe"
for e in $b/*; do
c=$(basename $e);
if [ -f $c.out ]; then #run only if reference output file exists.
echo -ne "\n*** Running $c ... "
temp=$c.$$
if [ -f $c.in ]; then
$EXEC $e < $c.in | grep -v 'time (s)' | grep -v 'Memory used' > $temp
else
$EXEC $e | grep -v 'time (s)' | grep -v 'Memory used' > $temp
fi
diff -w $c.out $temp >/dev/null
stat=$?
if [ $stat -eq 1 ]; then
echo "test failed! ***"
echo "*** Diff of $c.out $temp ***"
diff -w $c.out $temp
else
echo "test passed! ***"
fi
rm $temp
fi
done
Event Timeline
Log In to Comment