Simplify evp test Makefile.
authortb <tb@openbsd.org>
Thu, 2 Mar 2023 20:22:46 +0000 (20:22 +0000)
committertb <tb@openbsd.org>
Thu, 2 Mar 2023 20:22:46 +0000 (20:22 +0000)
Make evptest silent by default: these pages of hexdumps are useless noise.
Add a verbose target for debugging.

regress/lib/libcrypto/evp/Makefile

index 956ae8a..3b6f466 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.9 2022/11/10 16:38:57 jsing Exp $
+#      $OpenBSD: Makefile,v 1.10 2023/03/02 20:22:46 tb Exp $
 
 PROGS= evptest evp_test evp_ecx_test evp_pkey_check evp_pkey_cleanup
 LDADD= -lcrypto
@@ -8,27 +8,14 @@ CFLAGS+=      -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL -Werror
 CFLAGS+=       -I${.CURDIR}/../../../../lib/libcrypto/curve25519
 CFLAGS+=       -I${.CURDIR}/../../../../lib/libcrypto/evp
 
-REGRESS_TARGETS+=      regress-evptest
-REGRESS_TARGETS+=      regress-evp_test
-REGRESS_TARGETS+=      regress-evp_ecx_test
-REGRESS_TARGETS+=      regress-evp_pkey_check
-REGRESS_TARGETS+=      regress-evp_pkey_cleanup
-
 LDADD_evp_ecx_test = ${CRYPTO_INT}
 
-regress-evptest:       evptest
+run-regress-evptest:   evptest
        ./evptest ${.CURDIR}/evptests.txt
 
-regress-evp_test:      evp_test
-       ./evp_test
-
-regress-evp_ecx_test:  evp_ecx_test
-       ./evp_ecx_test
-
-regress-evp_pkey_check: evp_pkey_check
-       ./evp_pkey_check
+run-regress-evptest-verbose:
+       ./evptest -v ${.CURDIR}/evptests.txt
 
-regress-evp_pkey_cleanup: evp_pkey_cleanup
-       ./evp_pkey_cleanup
+.PHONY: run-regress-evptest-verbose
 
 .include <bsd.regress.mk>