Skip to content

Commit a342826

Browse files
committed
Extend coverage
Run x509_verify for all certs. Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent bab00ec commit a342826

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.ci/coverage_more.sh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,35 @@
22

33
set -e
44

5+
function pdiv() {
6+
printf "\n====== %s ======\n" "$*"
7+
}
8+
59
if [ "$#" = "1" -a "$(echo $1 | grep 'gmp')" != "" ]; then
10+
pdiv "Test GMP"
611
./test t gmp
712
fi
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"
1334
difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
1435
if [ -n "$difftroubles" ]; then
1536
echo "FAILURE: hashsum_tv.tx"

0 commit comments

Comments
 (0)