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