Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Riccardo PELLARIN
recursive-gmconvert
Commits
78dbf4f0
Commit
78dbf4f0
authored
Mar 05, 2018
by
samuel hanot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pass/fail output to test
parent
35780aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
test/3368/test.sh
test/3368/test.sh
+7
-1
No files found.
test/3368/test.sh
View file @
78dbf4f0
#!/bin/bash
../../recursive_gmconvert.sh
-f
emd_3368.map
-t
$(
cat
cutoff.txt
)
-n
4
-N
2
-s
../../recursive_gmconvert.sh
-f
emd_3368.map
-t
$(
cat
cutoff.txt
)
-n
4
-N
4
-s
for
f
in
1 2 3 4
do
...
...
@@ -8,4 +8,10 @@ do
done
>
result.txt
result
=
$(
paste
result.txt result_check.txt |
awk
'{checksum+=($1-$4)/$4+($2-$5)/$5+($3-$6)/$6;n+=1} END{print checksum/n>0.01}'
)
if
((
result
==
0
))
then
echo
'PASSED'
else
echo
'FAILED'
fi
exit
$result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment