Skip to content

Commit b0526bb

Browse files
committed
Rename valgrind_ctime_test -> ctime_tests
1 parent 30d3d24 commit b0526bb

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ cat_logs_snippet: &CAT_LOGS
3838
- cat tests.log || true
3939
cat_exhaustive_tests_log_script:
4040
- cat exhaustive_tests.log || true
41-
cat_valgrind_ctime_test_log_script:
42-
- cat valgrind_ctime_test.log || true
41+
cat_ctime_tests_log_script:
42+
- cat ctime_tests.log || true
4343
cat_bench_log_script:
4444
- cat bench.log || true
4545
cat_config_log_script:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests
55
exhaustive_tests
66
precompute_ecmult_gen
77
precompute_ecmult
8-
valgrind_ctime_test
8+
ctime_tests
99
ecdh_example
1010
ecdsa_example
1111
schnorr_example

Makefile.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ noinst_PROGRAMS += tests
116116
tests_SOURCES = src/tests.c
117117
tests_CPPFLAGS = $(SECP_INCLUDES) $(SECP_TEST_INCLUDES) $(SECP_CONFIG_DEFINES)
118118
if VALGRIND_ENABLED
119-
noinst_PROGRAMS += valgrind_ctime_test
120-
valgrind_ctime_test_SOURCES = src/valgrind_ctime_test.c
121-
valgrind_ctime_test_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB)
122-
valgrind_ctime_test_CPPFLAGS = $(SECP_CONFIG_DEFINES)
119+
noinst_PROGRAMS += ctime_tests
120+
ctime_tests_SOURCES = src/ctime_tests.c
121+
ctime_tests_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB)
122+
ctime_tests_CPPFLAGS = $(SECP_CONFIG_DEFINES)
123123
endif
124124
if !ENABLE_COVERAGE
125125
tests_CPPFLAGS += -DVERIFY

ci/cirrus.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fi
9595

9696
if [ "$CTIMETEST" = "yes" ]
9797
then
98-
./libtool --mode=execute valgrind --error-exitcode=42 ./valgrind_ctime_test > valgrind_ctime_test.log 2>&1
98+
./libtool --mode=execute valgrind --error-exitcode=42 ./ctime_tests > ctime_tests.log 2>&1
9999
fi
100100

101101
# Rebuild precomputed files (if not cross-compiling).

doc/safegcd_implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ sufficient even. Given that every loop iteration performs *N* divsteps, it will
410410

411411
To deal with the branches in `divsteps_n_matrix` we will replace them with constant-time bitwise
412412
operations (and hope the C compiler isn't smart enough to turn them back into branches; see
413-
`valgrind_ctime_test.c` for automated tests that this isn't the case). To do so, observe that a
413+
`ctime_tests.c` for automated tests that this isn't the case). To do so, observe that a
414414
divstep can be written instead as (compare to the inner loop of `gcd` in section 1).
415415

416416
```python

src/valgrind_ctime_test.c renamed to src/ctime_tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(void) {
3939

4040
if (!SECP256K1_CHECKMEM_RUNNING()) {
4141
fprintf(stderr, "Unless compiled under msan, this test can only usefully be run inside valgrind.\n");
42-
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./valgrind_ctime_test\n");
42+
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./ctime_tests\n");
4343
return 1;
4444
}
4545
ctx = secp256k1_context_create(SECP256K1_CONTEXT_DECLASSIFY);

0 commit comments

Comments
 (0)