File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ function pdiv() {
6+ printf " \n====== %s ======\n" " $* "
7+ }
8+
59if [ " $# " = " 1" -a " $( echo $1 | grep ' gmp' ) " != " " ]; then
10+ pdiv " Test GMP"
611 ./test t gmp
712fi
813
14+ pdiv " Sizes"
915./sizes
16+ pdiv " Constants"
1017./constants
1118
12- for i in $( for j in $( echo $( ./hashsum -h | awk ' /Algorithms/,EOF' | tail -n +2) ) ; do echo $j ; done | sort) ; do echo -n " $i : " && ./hashsum -a $i tests/test.key ; done > hashsum_tv.txt
19+ for n in tests/x509/* .pem; do
20+ pdiv " X.509 verify $n "
21+ ./x509_verify $n
22+ done
23+
24+
25+ pdiv " X.509 verify of all certs packaged"
26+ find tests/x509 -name ' *.pem' -exec ' ./x509_verify' {} \+ | & less
27+
28+ pdiv " Generate hashsum_tv.txt"
29+ for i in $( for j in $( echo $( ./hashsum -h | awk ' /Algorithms/,EOF' | tail -n +2) ) ; do echo $j ; done | sort) ; do
30+ echo -n " $i : " && ./hashsum -a $i tests/test.key
31+ done > hashsum_tv.txt
32+
33+ pdiv " Compare hashsum_tv.txt"
1334difftroubles=$( diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep ' ^<' ) || true
1435if [ -n " $difftroubles " ]; then
1536 echo " FAILURE: hashsum_tv.tx"
You can’t perform that action at this time.
0 commit comments