Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / crypto / openssl / test / tpkcs7
blob3e435ffbf9fd837c30f97831a5a0e6c4e612564f
1 #!/bin/sh
3 cmd='../util/shlib_wrap.sh ../apps/openssl pkcs7'
5 if [ "$1"x != "x" ]; then
6 t=$1
7 else
8 t=testp7.pem
9 fi
11 echo testing pkcs7 conversions
12 cp $t fff.p
14 echo "p -> d"
15 $cmd -in fff.p -inform p -outform d >f.d
16 if [ $? != 0 ]; then exit 1; fi
17 echo "p -> p"
18 $cmd -in fff.p -inform p -outform p >f.p
19 if [ $? != 0 ]; then exit 1; fi
21 echo "d -> d"
22 $cmd -in f.d -inform d -outform d >ff.d1
23 if [ $? != 0 ]; then exit 1; fi
24 echo "p -> d"
25 $cmd -in f.p -inform p -outform d >ff.d3
26 if [ $? != 0 ]; then exit 1; fi
28 echo "d -> p"
29 $cmd -in f.d -inform d -outform p >ff.p1
30 if [ $? != 0 ]; then exit 1; fi
31 echo "p -> p"
32 $cmd -in f.p -inform p -outform p >ff.p3
33 if [ $? != 0 ]; then exit 1; fi
35 cmp fff.p f.p
36 if [ $? != 0 ]; then exit 1; fi
37 cmp fff.p ff.p1
38 if [ $? != 0 ]; then exit 1; fi
39 cmp fff.p ff.p3
40 if [ $? != 0 ]; then exit 1; fi
42 cmp f.p ff.p1
43 if [ $? != 0 ]; then exit 1; fi
44 cmp f.p ff.p3
45 if [ $? != 0 ]; then exit 1; fi
47 /bin/rm -f f.* ff.* fff.*
48 exit 0