consistent test-start logging
[openssl.git] / test / tcrl
1 #!/bin/sh
2
3 OPENSSL_CONF=/dev/null ; export OPENSSL_CONF
4 cmd='../util/shlib_wrap.sh ../apps/openssl crl'
5
6 if [ "$1"x != "x" ]; then
7         t=$1
8 else
9         t=testcrl.pem
10 fi
11
12 echo testing crl conversions
13 cp $t crl-fff.p
14
15 echo "p -> d"
16 $cmd -in crl-fff.p -inform p -outform d >crl-f.d
17 if [ $? != 0 ]; then exit 1; fi
18 #echo "p -> t"
19 #$cmd -in crl-fff.p -inform p -outform t >crl-f.t
20 #if [ $? != 0 ]; then exit 1; fi
21 echo "p -> p"
22 $cmd -in crl-fff.p -inform p -outform p >crl-f.p
23 if [ $? != 0 ]; then exit 1; fi
24
25 echo "d -> d"
26 $cmd -in crl-f.d -inform d -outform d >crl-ff.d1
27 if [ $? != 0 ]; then exit 1; fi
28 #echo "t -> d"
29 #$cmd -in crl-f.t -inform t -outform d >crl-ff.d2
30 #if [ $? != 0 ]; then exit 1; fi
31 echo "p -> d"
32 $cmd -in crl-f.p -inform p -outform d >crl-ff.d3
33 if [ $? != 0 ]; then exit 1; fi
34
35 #echo "d -> t"
36 #$cmd -in crl-f.d -inform d -outform t >crl-ff.t1
37 #if [ $? != 0 ]; then exit 1; fi
38 #echo "t -> t"
39 #$cmd -in crl-f.t -inform t -outform t >crl-ff.t2
40 #if [ $? != 0 ]; then exit 1; fi
41 #echo "p -> t"
42 #$cmd -in crl-f.p -inform p -outform t >crl-ff.t3
43 #if [ $? != 0 ]; then exit 1; fi
44
45 echo "d -> p"
46 $cmd -in crl-f.d -inform d -outform p >crl-ff.p1
47 if [ $? != 0 ]; then exit 1; fi
48 #echo "t -> p"
49 #$cmd -in crl-f.t -inform t -outform p >crl-ff.p2
50 #if [ $? != 0 ]; then exit 1; fi
51 echo "p -> p"
52 $cmd -in crl-f.p -inform p -outform p >crl-ff.p3
53 if [ $? != 0 ]; then exit 1; fi
54
55 cmp crl-fff.p crl-f.p
56 if [ $? != 0 ]; then exit 1; fi
57 cmp crl-fff.p crl-ff.p1
58 if [ $? != 0 ]; then exit 1; fi
59 #cmp crl-fff.p crl-ff.p2
60 #if [ $? != 0 ]; then exit 1; fi
61 cmp crl-fff.p crl-ff.p3
62 if [ $? != 0 ]; then exit 1; fi
63
64 #cmp crl-f.t crl-ff.t1
65 #if [ $? != 0 ]; then exit 1; fi
66 #cmp crl-f.t crl-ff.t2
67 #if [ $? != 0 ]; then exit 1; fi
68 #cmp crl-f.t crl-ff.t3
69 #if [ $? != 0 ]; then exit 1; fi
70
71 cmp crl-f.p crl-ff.p1
72 if [ $? != 0 ]; then exit 1; fi
73 #cmp crl-f.p crl-ff.p2
74 #if [ $? != 0 ]; then exit 1; fi
75 cmp crl-f.p crl-ff.p3
76 if [ $? != 0 ]; then exit 1; fi
77
78 /bin/rm -f crl-f.* crl-ff.* crl-fff.*
79 exit 0