1#!/bin/sh 2 3cmd='../util/shlib_wrap.sh ../apps/openssl crl' 4 5if [ "$1"x != "x" ]; then 6 t=$1 7else 8 t=testcrl.pem 9fi 10 11echo testing crl conversions 12cp $t crl-fff.p 13 14echo "p -> d" 15$cmd -in crl-fff.p -inform p -outform d >crl-f.d 16if [ $? != 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 20echo "p -> p" 21$cmd -in crl-fff.p -inform p -outform p >crl-f.p 22if [ $? != 0 ]; then exit 1; fi 23 24echo "d -> d" 25$cmd -in crl-f.d -inform d -outform d >crl-ff.d1 26if [ $? != 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 30echo "p -> d" 31$cmd -in crl-f.p -inform p -outform d >crl-ff.d3 32if [ $? != 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 44echo "d -> p" 45$cmd -in crl-f.d -inform d -outform p >crl-ff.p1 46if [ $? != 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 50echo "p -> p" 51$cmd -in crl-f.p -inform p -outform p >crl-ff.p3 52if [ $? != 0 ]; then exit 1; fi 53 54cmp crl-fff.p crl-f.p 55if [ $? != 0 ]; then exit 1; fi 56cmp crl-fff.p crl-ff.p1 57if [ $? != 0 ]; then exit 1; fi 58#cmp crl-fff.p crl-ff.p2 59#if [ $? != 0 ]; then exit 1; fi 60cmp crl-fff.p crl-ff.p3 61if [ $? != 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 70cmp crl-f.p crl-ff.p1 71if [ $? != 0 ]; then exit 1; fi 72#cmp crl-f.p crl-ff.p2 73#if [ $? != 0 ]; then exit 1; fi 74cmp crl-f.p crl-ff.p3 75if [ $? != 0 ]; then exit 1; fi 76 77/bin/rm -f crl-f.* crl-ff.* crl-fff.* 78exit 0 79