tcrl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #!/bin/sh
  2. cmd='../util/shlib_wrap.sh ../apps/openssl crl'
  3. if [ "$1"x != "x" ]; then
  4. t=$1
  5. else
  6. t=testcrl.pem
  7. fi
  8. echo testing crl conversions
  9. cp $t crl-fff.p
  10. echo "p -> d"
  11. $cmd -in crl-fff.p -inform p -outform d >crl-f.d
  12. if [ $? != 0 ]; then exit 1; fi
  13. #echo "p -> t"
  14. #$cmd -in crl-fff.p -inform p -outform t >crl-f.t
  15. #if [ $? != 0 ]; then exit 1; fi
  16. echo "p -> p"
  17. $cmd -in crl-fff.p -inform p -outform p >crl-f.p
  18. if [ $? != 0 ]; then exit 1; fi
  19. echo "d -> d"
  20. $cmd -in crl-f.d -inform d -outform d >crl-ff.d1
  21. if [ $? != 0 ]; then exit 1; fi
  22. #echo "t -> d"
  23. #$cmd -in crl-f.t -inform t -outform d >crl-ff.d2
  24. #if [ $? != 0 ]; then exit 1; fi
  25. echo "p -> d"
  26. $cmd -in crl-f.p -inform p -outform d >crl-ff.d3
  27. if [ $? != 0 ]; then exit 1; fi
  28. #echo "d -> t"
  29. #$cmd -in crl-f.d -inform d -outform t >crl-ff.t1
  30. #if [ $? != 0 ]; then exit 1; fi
  31. #echo "t -> t"
  32. #$cmd -in crl-f.t -inform t -outform t >crl-ff.t2
  33. #if [ $? != 0 ]; then exit 1; fi
  34. #echo "p -> t"
  35. #$cmd -in crl-f.p -inform p -outform t >crl-ff.t3
  36. #if [ $? != 0 ]; then exit 1; fi
  37. echo "d -> p"
  38. $cmd -in crl-f.d -inform d -outform p >crl-ff.p1
  39. if [ $? != 0 ]; then exit 1; fi
  40. #echo "t -> p"
  41. #$cmd -in crl-f.t -inform t -outform p >crl-ff.p2
  42. #if [ $? != 0 ]; then exit 1; fi
  43. echo "p -> p"
  44. $cmd -in crl-f.p -inform p -outform p >crl-ff.p3
  45. if [ $? != 0 ]; then exit 1; fi
  46. cmp crl-fff.p crl-f.p
  47. if [ $? != 0 ]; then exit 1; fi
  48. cmp crl-fff.p crl-ff.p1
  49. if [ $? != 0 ]; then exit 1; fi
  50. #cmp crl-fff.p crl-ff.p2
  51. #if [ $? != 0 ]; then exit 1; fi
  52. cmp crl-fff.p crl-ff.p3
  53. if [ $? != 0 ]; then exit 1; fi
  54. #cmp crl-f.t crl-ff.t1
  55. #if [ $? != 0 ]; then exit 1; fi
  56. #cmp crl-f.t crl-ff.t2
  57. #if [ $? != 0 ]; then exit 1; fi
  58. #cmp crl-f.t crl-ff.t3
  59. #if [ $? != 0 ]; then exit 1; fi
  60. cmp crl-f.p crl-ff.p1
  61. if [ $? != 0 ]; then exit 1; fi
  62. #cmp crl-f.p crl-ff.p2
  63. #if [ $? != 0 ]; then exit 1; fi
  64. cmp crl-f.p crl-ff.p3
  65. if [ $? != 0 ]; then exit 1; fi
  66. /bin/rm -f crl-f.* crl-ff.* crl-fff.*
  67. exit 0