Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93335854
runtests
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
Thu, Nov 28, 00:23
Size
564 B
Mime Type
text/x-shellscript
Expires
Sat, Nov 30, 00:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22481673
Attached To
rSPCLIBS SPClibs
runtests
View Options
#!/bin/sh
for
e in ../bin/*;
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
$e
<
$c
.in | grep -v
'time (s)'
| grep -v
'Memory used'
>
$temp
else
$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