From e64cd4deb7c2e63e27ff304dbb1bfcd6955a33f1 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 7 Nov 2015 22:37:12 +0200 Subject: [PATCH] Correct test (replace == with =). --- Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index ab0ea24..571ada8 100644 --- a/Makefile +++ b/Makefile @@ -9,22 +9,22 @@ clean: test: clean ./ssl-ca init - test "$$(openssl rsa -noout -check -in CA.key)" == "RSA key ok" - test "$$(openssl verify -CAfile CA.crt CA.crt)" == "CA.crt: OK" + test "$$(openssl rsa -noout -check -in CA.key)" = "RSA key ok" + test "$$(openssl verify -CAfile CA.crt CA.crt)" = "CA.crt: OK" ./ssl-ca gen www - test "$$(openssl rsa -noout -check -in keys/www)" == "RSA key ok" + test "$$(openssl rsa -noout -check -in keys/www)" = "RSA key ok" openssl verify -CAfile CA.crt certs/www - test "$$(openssl x509 -in certs/www -issuer -noout)" == "issuer= /CN=*.*.ssl-ca" - test "$$(openssl x509 -in certs/www -subject -noout)" == "subject= /CN=*.*.www.ssl-ca" + test "$$(openssl x509 -in certs/www -issuer -noout)" = "issuer= /CN=*.*.ssl-ca" + test "$$(openssl x509 -in certs/www -subject -noout)" = "subject= /CN=*.*.www.ssl-ca" openssl genrsa -out keys/smtp ./ssl-ca sign openssl verify -CAfile CA.crt certs/smtp - test "$$(openssl x509 -in certs/smtp -issuer -noout)" == "issuer= /CN=*.*.ssl-ca" - test "$$(openssl x509 -in certs/smtp -subject -noout)" == "subject= /CN=*.*.smtp.ssl-ca" + test "$$(openssl x509 -in certs/smtp -issuer -noout)" = "issuer= /CN=*.*.ssl-ca" + test "$$(openssl x509 -in certs/smtp -subject -noout)" = "subject= /CN=*.*.smtp.ssl-ca" ./ssl-ca resign openssl verify -CAfile CA.crt certs/www openssl verify -CAfile CA.crt certs/smtp - test "$$(openssl x509 -in certs/www -issuer -noout)" == "issuer= /CN=*.*.ssl-ca" - test "$$(openssl x509 -in certs/www -subject -noout)" == "subject= /CN=*.*.www.ssl-ca" - test "$$(openssl x509 -in certs/smtp -issuer -noout)" == "issuer= /CN=*.*.ssl-ca" - test "$$(openssl x509 -in certs/smtp -subject -noout)" == "subject= /CN=*.*.smtp.ssl-ca" + test "$$(openssl x509 -in certs/www -issuer -noout)" = "issuer= /CN=*.*.ssl-ca" + test "$$(openssl x509 -in certs/www -subject -noout)" = "subject= /CN=*.*.www.ssl-ca" + test "$$(openssl x509 -in certs/smtp -issuer -noout)" = "issuer= /CN=*.*.ssl-ca" + test "$$(openssl x509 -in certs/smtp -subject -noout)" = "subject= /CN=*.*.smtp.ssl-ca" -- GitLab