Skip to content

Commit cbe41ac

Browse files
committed
Merge #1188: tests: Add noverify_tests which is like tests but without VERIFY
2037600 tests: Add noverify_tests which is like tests but without VERIFY (Tim Ruffing) Pull request description: mentioned in #1037 (comment) Let's see how this affects CI time ACKs for top commit: sipa: ACK 2037600 apoelstra: ACK 2037600 Tree-SHA512: fab1ce1499d418671d3d0ecfddf15d75b7c2bbfbfb4be958a95730491244185a906c7133aba4d0bec56ee6c721cb525750eef4cafc12f386484af931e34b0e8e
2 parents 0eb3000 + 2037600 commit cbe41ac

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.cirrus.yml

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ cat_logs_snippet: &CAT_LOGS
3636
always:
3737
cat_tests_log_script:
3838
- cat tests.log || true
39+
cat_noverify_tests_log_script:
40+
- cat noverify_tests.log || true
3941
cat_exhaustive_tests_log_script:
4042
- cat exhaustive_tests.log || true
4143
cat_valgrind_ctime_test_log_script:

Makefile.am

+13-8
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,26 @@ endif
116116

117117
TESTS =
118118
if USE_TESTS
119-
noinst_PROGRAMS += tests
120-
tests_SOURCES = src/tests.c
121-
tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES)
119+
TESTS += noverify_tests
120+
noinst_PROGRAMS += noverify_tests
121+
noverify_tests_SOURCES = src/tests.c
122+
noverify_tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES)
123+
noverify_tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB) $(PRECOMPUTED_LIB)
124+
noverify_tests_LDFLAGS = -static
122125
if VALGRIND_ENABLED
123-
tests_CPPFLAGS += -DVALGRIND
126+
noverify_tests_CPPFLAGS += -DVALGRIND
124127
noinst_PROGRAMS += valgrind_ctime_test
125128
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
126129
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB)
127130
endif
128131
if !ENABLE_COVERAGE
129-
tests_CPPFLAGS += -DVERIFY
130-
endif
131-
tests_LDADD = $(SECP_LIBS) $(SECP_TEST_LIBS) $(COMMON_LIB) $(PRECOMPUTED_LIB)
132-
tests_LDFLAGS = -static
133132
TESTS += tests
133+
noinst_PROGRAMS += tests
134+
tests_SOURCES = $(noverify_tests_SOURCES)
135+
tests_CPPFLAGS = $(noverify_tests_CPPFLAGS) -DVERIFY
136+
tests_LDADD = $(noverify_tests_LDADD)
137+
tests_LDFLAGS = $(noverify_tests_LDFLAGS)
138+
endif
134139
endif
135140

136141
if USE_EXHAUSTIVE_TESTS

0 commit comments

Comments
 (0)