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 2
2
3
3
set -e
4
4
5
+ function pdiv() {
6
+ printf " \n====== %s ======\n" " $* "
7
+ }
8
+
5
9
if [ " $# " = " 1" -a " $( echo $1 | grep ' gmp' ) " != " " ]; then
10
+ pdiv " Test GMP"
6
11
./test t gmp
7
12
fi
8
13
14
+ pdiv " Sizes"
9
15
./sizes
16
+ pdiv " Constants"
10
17
./constants
11
18
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"
13
34
difftroubles=$( diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep ' ^<' ) || true
14
35
if [ -n " $difftroubles " ]; then
15
36
echo " FAILURE: hashsum_tv.tx"
You can’t perform that action at this time.
0 commit comments