Skip to content

Commit bc68659

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

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.ci/coverage_more.sh

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,37 @@
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+
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+
27+
pdiv "X.509 verify of all certs packaged"
28+
find tests/x509 -name '*.pem' -exec './x509_verify' {} \+ >>x509_verify.log 2>&1
29+
30+
pdiv "Generate hashsum_tv.txt"
31+
for i in $(for j in $(echo $(./hashsum -h | awk '/Algorithms/,EOF' | tail -n +2)); do echo $j; done | sort); do
32+
echo -n "$i: " && ./hashsum -a $i tests/test.key
33+
done > hashsum_tv.txt
34+
35+
pdiv "Compare hashsum_tv.txt"
1336
difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
1437
if [ -n "$difftroubles" ]; then
1538
echo "FAILURE: hashsum_tv.tx"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ doxygen/
111111
*.lof
112112
*.bak
113113

114-
coverage/
114+
coverage*/
115115
coverage*.info
116116

117117
# coverity intermediate directory etc.

0 commit comments

Comments
 (0)