Skip to content

Commit

Permalink
tests: Add noverify_tests which is like tests but without VERIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Jan 5, 2023
1 parent 2a39ac1 commit ea793b6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ea793b6

Please sign in to comment.