From ea793b68a94d3ebf995fd8b3e863b527a7979a77 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Thu, 5 Jan 2023 11:37:40 +0100 Subject: [PATCH] tests: Add noverify_tests which is like tests but without VERIFY --- Makefile.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0e59c3abbf..64e9810c70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -116,7 +116,7 @@ endif TESTS = if USE_TESTS -noinst_PROGRAMS += tests +noinst_PROGRAMS += tests noverify_tests tests_SOURCES = src/tests.c tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES) if VALGRIND_ENABLED @@ -125,12 +125,16 @@ noinst_PROGRAMS += valgrind_ctime_test valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) endif +tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB) $(PRECOMPUTED_LIB) +tests_LDFLAGS = -static +noverify_tests_SOURCES = $(tests_SOURCES) +noverify_tests_CPPFLAGS = $(tests_CPPFLAGS) +noverify_tests_LDADD = $(tests_LDADD) +noverify_tests_LDFLAGS = $(tests_LDFLAGS) if !ENABLE_COVERAGE tests_CPPFLAGS += -DVERIFY endif -tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB) $(PRECOMPUTED_LIB) -tests_LDFLAGS = -static -TESTS += tests +TESTS += tests noverify_tests endif if USE_EXHAUSTIVE_TESTS