Don't try to test the RSA command if it is not available.
authorBodo Möller <bodo@openssl.org>
Mon, 13 Mar 2000 18:05:59 +0000 (18:05 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 13 Mar 2000 18:05:59 +0000 (18:05 +0000)
test/trsa

index d6a4dd826d7be8c541b3e6a9bc0d98f8630c2f84..a7a624978f329225a346185611581a4891777d00 100644 (file)
--- a/test/trsa
+++ b/test/trsa
@@ -3,6 +3,13 @@
 PATH=../apps:$PATH
 export PATH
 
+if ../apps/openssl list-standard-commands | grep '^rsa$' >/dev/null; then
+  echo openssl rsa command available
+else
+  echo openssl rsa command not available, skipping test
+  exit 0
+fi
+
 cmd='../apps/openssl rsa'
 
 if [ "$1"x != "x" ]; then