tests: Add noverify_tests which is like tests but without VERIFY
This commit is contained in:
parent
2a39ac162e
commit
203760023c
@ -36,6 +36,8 @@ cat_logs_snippet: &CAT_LOGS
|
|||||||
always:
|
always:
|
||||||
cat_tests_log_script:
|
cat_tests_log_script:
|
||||||
- cat tests.log || true
|
- cat tests.log || true
|
||||||
|
cat_noverify_tests_log_script:
|
||||||
|
- cat noverify_tests.log || true
|
||||||
cat_exhaustive_tests_log_script:
|
cat_exhaustive_tests_log_script:
|
||||||
- cat exhaustive_tests.log || true
|
- cat exhaustive_tests.log || true
|
||||||
cat_valgrind_ctime_test_log_script:
|
cat_valgrind_ctime_test_log_script:
|
||||||
|
21
Makefile.am
21
Makefile.am
@ -116,21 +116,26 @@ endif
|
|||||||
|
|
||||||
TESTS =
|
TESTS =
|
||||||
if USE_TESTS
|
if USE_TESTS
|
||||||
noinst_PROGRAMS += tests
|
TESTS += noverify_tests
|
||||||
tests_SOURCES = src/tests.c
|
noinst_PROGRAMS += noverify_tests
|
||||||
tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES)
|
noverify_tests_SOURCES = src/tests.c
|
||||||
|
noverify_tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES)
|
||||||
|
noverify_tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB) $(PRECOMPUTED_LIB)
|
||||||
|
noverify_tests_LDFLAGS = -static
|
||||||
if VALGRIND_ENABLED
|
if VALGRIND_ENABLED
|
||||||
tests_CPPFLAGS += -DVALGRIND
|
noverify_tests_CPPFLAGS += -DVALGRIND
|
||||||
noinst_PROGRAMS += valgrind_ctime_test
|
noinst_PROGRAMS += valgrind_ctime_test
|
||||||
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
|
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
|
||||||
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB)
|
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB)
|
||||||
endif
|
endif
|
||||||
if !ENABLE_COVERAGE
|
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
|
||||||
|
noinst_PROGRAMS += tests
|
||||||
|
tests_SOURCES = $(noverify_tests_SOURCES)
|
||||||
|
tests_CPPFLAGS = $(noverify_tests_CPPFLAGS) -DVERIFY
|
||||||
|
tests_LDADD = $(noverify_tests_LDADD)
|
||||||
|
tests_LDFLAGS = $(noverify_tests_LDFLAGS)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if USE_EXHAUSTIVE_TESTS
|
if USE_EXHAUSTIVE_TESTS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user