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
5f611f6 Conditionally compile the hex macro (Tobin C. Harding)
69349a8 Add NIGHTLY variable to CI script (Tobin C. Harding)
Pull request description:
We are currently using the DO_BENCH variable as a proxy for whether or not we are using a nightly toolchain, while this is technically correct we use it from within an if guarded statement that is guarded by DO_FEATURE_MATRIX and we never run the CI script with _both_ of these variables set to true. This means that the all features test is never being run.
Add a NIGHTLY variable and set it based on the output of `cargo --version`.
This PR catches the bug fixed in: #466 as such it will not be able to be merged until #466 merges.
ACKs for top commit:
apoelstra:
ACK 5f611f6
Tree-SHA512: 231bbff8e8944026183a87f681c2d7152c4dcfaaafb6cbd99404e8912d61dbc53c40bb24473c156e893c5b8de79462cb944ed94ffe5429f8b31eaef76dbc0694
Copy file name to clipboardExpand all lines: contrib/test.sh
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@ fi
17
17
cargo --version
18
18
rustc --version
19
19
20
+
# Work out if we are using a nightly toolchain.
21
+
NIGHTLY=false
22
+
if cargo --version | grep nightly;then
23
+
NIGHTLY=true
24
+
fi
25
+
20
26
# Test if panic in C code aborts the process (either with a real panic or with SIGILL)
21
27
cargo test -- --ignored --exact 'tests::test_panic_raw_ctx_should_terminate_abnormally'2>&1| tee /dev/stderr | grep "SIGILL\\|panicked at '\[libsecp256k1\]"
22
28
@@ -51,7 +57,7 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then
51
57
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all --features="$FEATURES"
52
58
cargo test --all --features="rand serde"
53
59
54
-
if [ "$DO_BENCH"=true ];then# proxy for us having a nightly compiler
60
+
if [ "$NIGHTLY"=true ];then
55
61
cargo test --all --all-features
56
62
RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all --all-features
0 commit comments