mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
30f54ad295
Removed commented-out tests Standardize on doing cmd ... || exit 1 instead of cmd ... if [ $? != 0] ; then exit 1 fi where that if statement has ben one, three, or four lines, variously. Reviewed-by: Richard Levitte <levitte@openssl.org>
39 lines
859 B
Bash
39 lines
859 B
Bash
#!/bin/sh
|
|
|
|
OPENSSL_CONF=/dev/null ; export OPENSSL_CONF
|
|
cmd='../util/shlib_wrap.sh ../apps/openssl crl'
|
|
|
|
if [ "$1"x != "x" ]; then
|
|
t=$1
|
|
else
|
|
t=testcrl.pem
|
|
fi
|
|
|
|
echo testing crl conversions
|
|
cp $t crl-fff.p
|
|
|
|
echo "p -> d"
|
|
$cmd -in crl-fff.p -inform p -outform d >crl-f.d || exit 1
|
|
echo "p -> p"
|
|
$cmd -in crl-fff.p -inform p -outform p >crl-f.p || exit 1
|
|
|
|
echo "d -> d"
|
|
$cmd -in crl-f.d -inform d -outform d >crl-ff.d1 || exit 1
|
|
echo "p -> d"
|
|
$cmd -in crl-f.p -inform p -outform d >crl-ff.d3 || exit 1
|
|
|
|
|
|
echo "d -> p"
|
|
$cmd -in crl-f.d -inform d -outform p >crl-ff.p1 || exit 1
|
|
echo "p -> p"
|
|
$cmd -in crl-f.p -inform p -outform p >crl-ff.p3 || exit 1
|
|
|
|
cmp crl-fff.p crl-f.p || exit 1
|
|
cmp crl-fff.p crl-ff.p1 || exit 1
|
|
cmp crl-fff.p crl-ff.p3 || exit 1
|
|
cmp crl-f.p crl-ff.p1 || exit 1
|
|
cmp crl-f.p crl-ff.p3 || exit 1
|
|
|
|
/bin/rm -f crl-f.* crl-ff.* crl-fff.*
|
|
exit 0
|