Browse Source

update coverage.sh

* hashsum requires now a '-a' option flag for the algorithm
* '-h' is required to output the list of algorithms to stdout
* the algorithms are printed in columns, so we have to sort differently
Steffen Jaeckel 8 years ago
parent
commit
28f8a85246
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coverage.sh

+ 1 - 1
coverage.sh

@@ -32,7 +32,7 @@ fi
 ./sizes
 ./constants
 
-for i in $(./hashsum | tail -n +3 | awk '{print $1}' | sort); do echo -n "$i: " && ./hashsum $i testprof/test.key ; done > hashsum_tv.txt
+for i in $(for j in $(echo $(./hashsum -h | tail -n +3)); do echo $j; done | sort); do echo -n "$i: " && ./hashsum -a $i testprof/test.key ; done > hashsum_tv.txt
 difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
 if [ -n "$difftroubles" ]; then
   echo "FAILURE: hashsum_tv.tx"