You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Squashed 'src/secp256k1/' changes from efad3506a8..1758a92ffd
1758a92ffd Merge zcash#950: ci: Add ppc64le build
c58c4ea470 ci: Add ppc64le build
7973576f6e Merge zcash#662: Add ecmult_gen, ecmult_const and ecmult to benchmark
8f879c2887 Fix array size in bench_ecmult
2fe1b50df1 Add ecmult_gen, ecmult_const and ecmult to benchmark
593e6bad9c Clean up ecmult_bench to make space for more benchmarks
50f3367712 Merge zcash#947: ci: Run PRs on merge result even for i686
a35fdd3478 ci: Run PRs on merge result even for i686
3dc8c072b6 Merge zcash#846: ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs
02dcea1ad9 ci: Make test iterations configurable and tweak for sanitizer builds
489ff5c20a tests: Treat empty SECP2561_TEST_ITERS as if it was unset
fcfcb97e74 ci: Simplify to use generic wrapper for QEMU, Valgrind, etc
de4157f13a ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs
399722a63a Merge zcash#941: Clean up git tree
09b3bb8648 Clean up git tree
bf0ac46066 Merge zcash#930: Add ARM32/ARM64 CI
202a030f7d Merge zcash#850: add `secp256k1_ec_pubkey_cmp` method
1e78c18d5b Merge bitcoin-core/secp256k1#940: contrib: Explain explicit header guards
69394879b6 Merge zcash#926: secp256k1.h: clarify that by default arguments must be != NULL
6eceec6d56 add `secp256k1_xonly_pubkey_cmp` method
0d9561ae87 add `secp256k1_ec_pubkey_cmp` method
22a9ea154a contrib: Explain explicit header guards
6c52ae8724 Merge zcash#937: Have ge_set_gej_var, gej_double_var and ge_set_all_gej_var initialize all fields of their outputs.
185a6af227 Merge zcash#925: changed include statements without prefix 'include/'
14c9739a1f tests: Improve secp256k1_ge_set_all_gej_var for some infinity inputs
4a19668c37 tests: Test secp256k1_ge_set_all_gej_var for all infinity inputs
3c90bdda95 change local lib headers to be relative for those pointing at "include/" dir
45b6468d7e Have secp256k1_ge_set_all_gej_var initialize all fields. Previous behaviour would not initialize r->y values in the case where infinity is passed in. Furthermore, the previous behaviour wouldn't initialize anything in the case where all inputs were infinity.
31c0f6de41 Have secp256k1_gej_double_var initialize all fields. Previous behaviour would not initialize r->x and r->y values in the case where infinity is passed in.
dd6c3de322 Have secp256k1_ge_set_gej_var initialize all fields. Previous behaviour would not initialize r->x and r->y values in the case where infinity is passed in.
d0bd2693e3 Merge bitcoin-core/secp256k1#936: Fix gen_context/ASM build on ARM
8bbad7a18e Add asm build to ARM32 CI
7d65ed5214 Add ARM32/ARM64 CI
c8483520c9 Makefile.am: Don't pass a variable twice
2161f31785 Makefile.am: Honor config when building gen_context
99f47c20ec gen_context: Don't use external ASM because it complicates the build
98e0358d29 Merge zcash#933: Avoids a missing brace warning in schnorrsig/tests_impl.h on old compilers
99e2d5be0d Avoids a missing brace warning in schnorrsig/tests_impl.h on old compilers.
34388af6b6 Merge zcash#922: Add mingw32-w64/wine CI build
7012a188e6 Merge zcash#928: Define SECP256K1_BUILD in secp256k1.c directly.
ed5a199bed tests: fopen /dev/urandom in binary mode
ae9e648526 Define SECP256K1_BUILD in secp256k1.c directly.
4dc37bf81b Add mingw32-w64/wine CI build
0881633dfd secp256k1.h: clarify that by default arguments must be != NULL
git-subtree-dir: src/secp256k1
git-subtree-split: 1758a92ffd896af533b142707e9892ea6e15e5db
name: "x86_64 (mingw32-w64): Windows (Debian stable, Wine)"
250
+
container:
251
+
dockerfile: ci/linux-debian.Dockerfile
252
+
cpu: 1
253
+
memory: 1G
254
+
env:
255
+
WRAPPER_CMD: wine64-stable
256
+
TEST_ITERS: 16
257
+
HOST: x86_64-w64-mingw32
258
+
WITH_VALGRIND: no
259
+
ECDH: yes
260
+
RECOVERY: yes
261
+
EXPERIMENTAL: yes
262
+
SCHNORRSIG: yes
263
+
CTIMETEST: no
264
+
<< : *MERGE_BASE
265
+
test_script:
266
+
- ./ci/cirrus.sh
267
+
<< : *CAT_LOGS
268
+
269
+
# Sanitizers
270
+
task:
271
+
container:
272
+
dockerfile: ci/linux-debian.Dockerfile
273
+
cpu: 1
274
+
memory: 1G
275
+
env:
276
+
ECDH: yes
277
+
RECOVERY: yes
278
+
EXPERIMENTAL: yes
279
+
SCHNORRSIG: yes
280
+
CTIMETEST: no
281
+
EXTRAFLAGS: "--disable-openssl-tests"
282
+
matrix:
283
+
- name: "Valgrind (memcheck)"
284
+
env:
285
+
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
Copy file name to clipboardexpand all lines: ci/cirrus.sh
+9-24
Original file line number
Diff line number
Diff line change
@@ -25,42 +25,27 @@ valgrind --version || true
25
25
make
26
26
27
27
# Print information about binaries so that we can see that the architecture is correct
28
-
file *tests ||true
28
+
file *tests*||true
29
29
file bench_*||true
30
30
file .libs/*||true
31
31
32
-
if [ -n"$BUILD" ]
33
-
then
34
-
make "$BUILD"
35
-
fi
32
+
# This tells `make check` to wrap test invocations.
33
+
export LOG_COMPILER="$WRAPPER_CMD"
36
34
37
-
if [ "$RUN_VALGRIND"="yes" ]
38
-
then
39
-
# the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
40
-
valgrind --error-exitcode=42 ./tests 16
41
-
valgrind --error-exitcode=42 ./exhaustive_tests
42
-
fi
35
+
# This limits the iterations in the tests and benchmarks.
36
+
export SECP256K1_TEST_ITERS="$TEST_ITERS"
37
+
export SECP256K1_BENCH_ITERS="$BENCH_ITERS"
43
38
44
-
if [ -n"$QEMU_CMD" ]
45
-
then
46
-
$QEMU_CMD ./tests 16
47
-
$QEMU_CMD ./exhaustive_tests
48
-
fi
39
+
make "$BUILD"
49
40
50
41
if [ "$BENCH"="yes" ]
51
42
then
52
43
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
53
44
EXEC='./libtool --mode=execute'
54
-
if [ -n"$QEMU_CMD" ]
55
-
then
56
-
EXEC="$EXEC$QEMU_CMD"
57
-
fi
58
-
if [ "$RUN_VALGRIND"="yes" ]
45
+
if [ -n"$WRAPPER_CMD" ]
59
46
then
60
-
EXEC="$EXECvalgrind --error-exitcode=42"
47
+
EXEC="$EXEC$WRAPPER_CMD"
61
48
fi
62
-
# This limits the iterations in the benchmarks below to ITER iterations.
0 commit comments