Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
28f8a85246
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      coverage.sh

+ 1 - 1
coverage.sh

@@ -32,7 +32,7 @@ fi
 ./sizes
 ./sizes
 ./constants
 ./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
 difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
 if [ -n "$difftroubles" ]; then
 if [ -n "$difftroubles" ]; then
   echo "FAILURE: hashsum_tv.tx"
   echo "FAILURE: hashsum_tv.tx"