Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91707537
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
Wed, Nov 13, 17:13
Size
564 B
Mime Type
text/x-shellscript
Expires
Fri, Nov 15, 17:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22311424
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