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