@@ -20,56 +20,56 @@ if cargo --version | grep "1\.48"; then
20
20
fi
21
21
22
22
# Test if panic in C code aborts the process (either with a real panic or with SIGILL)
23
- cargo test -- --ignored --exact ' tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 | tee /dev/stderr | grep " SIGILL\\ |panicked at '\[libsecp256k1\]"
23
+ cargo test --locked -- --ignored --exact ' tests::test_panic_raw_ctx_should_terminate_abnormally' 2>&1 | tee /dev/stderr | grep " SIGILL\\ |panicked at '\[libsecp256k1\]"
24
24
25
25
# Make all cargo invocations verbose
26
26
export CARGO_TERM_VERBOSE=true
27
27
28
28
# Defaults / sanity checks
29
- cargo build --all
30
- cargo test --all
29
+ cargo build --locked -- all
30
+ cargo test --locked -- all
31
31
32
32
if [ " $DO_FEATURE_MATRIX " = true ]; then
33
- cargo build --all --no-default-features
34
- cargo test --all --no-default-features
33
+ cargo build --locked -- all --no-default-features
34
+ cargo test --locked -- all --no-default-features
35
35
36
36
# All features
37
- cargo build --all --no-default-features --features=" $FEATURES "
38
- cargo test --all --no-default-features --features=" $FEATURES "
37
+ cargo build --locked -- all --no-default-features --features=" $FEATURES "
38
+ cargo test --locked -- all --no-default-features --features=" $FEATURES "
39
39
# Single features
40
40
for feature in ${FEATURES}
41
41
do
42
- cargo build --all --no-default-features --features=" $feature "
43
- cargo test --all --no-default-features --features=" $feature "
42
+ cargo build --locked -- all --no-default-features --features=" $feature "
43
+ cargo test --locked -- all --no-default-features --features=" $feature "
44
44
done
45
45
# Features tested with 'std' feature enabled.
46
46
for feature in ${FEATURES}
47
47
do
48
- cargo build --all --no-default-features --features=" std,$feature "
49
- cargo test --all --no-default-features --features=" std,$feature "
48
+ cargo build --locked -- all --no-default-features --features=" std,$feature "
49
+ cargo test --locked -- all --no-default-features --features=" std,$feature "
50
50
done
51
51
# Other combos
52
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all
53
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all --features=" $FEATURES "
54
- cargo test --all --features=" rand serde"
52
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all
53
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all --features=" $FEATURES "
54
+ cargo test --locked -- all --features=" rand serde"
55
55
56
56
if [ " $NIGHTLY " = true ]; then
57
- cargo test --all --all-features
58
- RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --all --all-features
57
+ cargo test --locked -- all --all-features
58
+ RUSTFLAGS=' --cfg=secp256k1_fuzz' RUSTDOCFLAGS=' --cfg=secp256k1_fuzz' cargo test --locked -- all --all-features
59
59
fi
60
60
61
61
# Examples
62
- cargo run --example sign_verify --features=bitcoin-hashes-std
63
- cargo run --example sign_verify_recovery --features=recovery,bitcoin-hashes-std
64
- cargo run --example generate_keys --features=rand-std
62
+ cargo run --locked -- example sign_verify --features=bitcoin-hashes-std
63
+ cargo run --locked -- example sign_verify_recovery --features=recovery,bitcoin-hashes-std
64
+ cargo run --locked -- example generate_keys --features=rand-std
65
65
fi
66
66
67
67
if [ " $DO_LINT " = true ]
68
68
then
69
- cargo clippy --all-features --all-targets -- -D warnings
70
- cargo clippy --example sign_verify --features=bitcoin-hashes-std -- -D warnings
71
- cargo clippy --example sign_verify_recovery --features=recovery,bitcoin-hashes-std -- -D warnings
72
- cargo clippy --example generate_keys --features=rand-std -- -D warnings
69
+ cargo clippy --locked -- all-features --all-targets -- -D warnings
70
+ cargo clippy --locked -- example sign_verify --features=bitcoin-hashes-std -- -D warnings
71
+ cargo clippy --locked -- example sign_verify_recovery --features=recovery,bitcoin-hashes-std -- -D warnings
72
+ cargo clippy --locked -- example generate_keys --features=rand-std -- -D warnings
73
73
fi
74
74
75
75
# Build the docs if told to (this only works with the nightly toolchain)
0 commit comments