tcrl 1.9 KB
Newer Older
1 2
#!/bin/sh

3
cmd='../util/shlib_wrap.sh ../apps/openssl crl'
4 5 6 7 8 9 10 11

if [ "$1"x != "x" ]; then
	t=$1
else
	t=testcrl.pem
fi

echo testing crl conversions
B
Ben Laurie 已提交
12
cp $t crl-fff.p
13 14

echo "p -> d"
B
Ben Laurie 已提交
15
$cmd -in crl-fff.p -inform p -outform d >crl-f.d
16 17
if [ $? != 0 ]; then exit 1; fi
#echo "p -> t"
B
Ben Laurie 已提交
18
#$cmd -in crl-fff.p -inform p -outform t >crl-f.t
19 20
#if [ $? != 0 ]; then exit 1; fi
echo "p -> p"
B
Ben Laurie 已提交
21
$cmd -in crl-fff.p -inform p -outform p >crl-f.p
22 23 24
if [ $? != 0 ]; then exit 1; fi

echo "d -> d"
B
Ben Laurie 已提交
25
$cmd -in crl-f.d -inform d -outform d >crl-ff.d1
26 27
if [ $? != 0 ]; then exit 1; fi
#echo "t -> d"
B
Ben Laurie 已提交
28
#$cmd -in crl-f.t -inform t -outform d >crl-ff.d2
29 30
#if [ $? != 0 ]; then exit 1; fi
echo "p -> d"
B
Ben Laurie 已提交
31
$cmd -in crl-f.p -inform p -outform d >crl-ff.d3
32 33 34
if [ $? != 0 ]; then exit 1; fi

#echo "d -> t"
B
Ben Laurie 已提交
35
#$cmd -in crl-f.d -inform d -outform t >crl-ff.t1
36 37
#if [ $? != 0 ]; then exit 1; fi
#echo "t -> t"
B
Ben Laurie 已提交
38
#$cmd -in crl-f.t -inform t -outform t >crl-ff.t2
39 40
#if [ $? != 0 ]; then exit 1; fi
#echo "p -> t"
B
Ben Laurie 已提交
41
#$cmd -in crl-f.p -inform p -outform t >crl-ff.t3
42 43 44
#if [ $? != 0 ]; then exit 1; fi

echo "d -> p"
B
Ben Laurie 已提交
45
$cmd -in crl-f.d -inform d -outform p >crl-ff.p1
46 47
if [ $? != 0 ]; then exit 1; fi
#echo "t -> p"
B
Ben Laurie 已提交
48
#$cmd -in crl-f.t -inform t -outform p >crl-ff.p2
49 50
#if [ $? != 0 ]; then exit 1; fi
echo "p -> p"
B
Ben Laurie 已提交
51
$cmd -in crl-f.p -inform p -outform p >crl-ff.p3
52 53
if [ $? != 0 ]; then exit 1; fi

B
Ben Laurie 已提交
54
cmp crl-fff.p crl-f.p
55
if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
56
cmp crl-fff.p crl-ff.p1
57
if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
58
#cmp crl-fff.p crl-ff.p2
59
#if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
60
cmp crl-fff.p crl-ff.p3
61 62
if [ $? != 0 ]; then exit 1; fi

B
Ben Laurie 已提交
63
#cmp crl-f.t crl-ff.t1
64
#if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
65
#cmp crl-f.t crl-ff.t2
66
#if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
67
#cmp crl-f.t crl-ff.t3
68 69
#if [ $? != 0 ]; then exit 1; fi

B
Ben Laurie 已提交
70
cmp crl-f.p crl-ff.p1
71
if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
72
#cmp crl-f.p crl-ff.p2
73
#if [ $? != 0 ]; then exit 1; fi
B
Ben Laurie 已提交
74
cmp crl-f.p crl-ff.p3
75 76
if [ $? != 0 ]; then exit 1; fi

B
Ben Laurie 已提交
77
/bin/rm -f crl-f.* crl-ff.* crl-fff.*
78
exit 0