Skip to content

Commit 7b6662f

Browse files
committed
Extend coverage
Run x509_verify for all certs. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent a1afebf commit 7b6662f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.ci/coverage_more.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ pdiv "Sizes"
1616
pdiv "Constants"
1717
./constants
1818

19+
echo "" > x509_verify.log
20+
21+
for n in tests/x509/*.pem; do
22+
pdiv "X.509 verify $n"
23+
./x509_verify $n >>x509_verify.log 2>&1
24+
done
25+
26+
pdiv "X.509 verify of all certs packaged"
27+
find tests/x509 -name '*.pem' -exec './x509_verify' {} \+ >>x509_verify.log 2>&1
28+
29+
pdiv "X.509 verify of all certs packaged via STDIN"
30+
for f in $(find tests/x509 -maxdepth 2 -name '*.pem'); do echo "- - - - - - -"; echo $f; cat $f | ./x509_verify; done >>x509_verify.log 2>&1
31+
1932
pdiv "Generate hashsum_tv.txt"
2033
for i in $(for j in $(echo $(./hashsum -h | awk '/Algorithms/,EOF' | tail -n +2)); do echo $j; done | sort); do
2134
echo -n "$i: " && ./hashsum -a $i tests/test.key

0 commit comments

Comments
 (0)