|
2 | 2 |
|
3 | 3 | set -eo pipefail |
4 | 4 |
|
| 5 | +# Cargo 'fmt' and 'clippy' early on. |
| 6 | +cargo +nightly fmt --check --manifest-path ./host/Cargo.toml |
| 7 | +cargo +nightly fmt --check --manifest-path ./host-macros/Cargo.toml |
| 8 | + |
| 9 | +cargo clippy --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security |
| 10 | +cargo clippy --manifest-path ./host-macros/Cargo.toml |
| 11 | + |
5 | 12 | if ! command -v cargo-batch &> /dev/null; then |
6 | 13 | mkdir -p $HOME/.cargo/bin |
7 | 14 | curl -L https://github.com/embassy-rs/cargo-batch/releases/download/batch-0.6.0/cargo-batch > $HOME/.cargo/bin/cargo-batch |
@@ -44,18 +51,9 @@ cargo batch \ |
44 | 51 | --- build --release --manifest-path examples/rp-pico-2-w/Cargo.toml --target thumbv8m.main-none-eabihf --features skip-cyw43-firmware |
45 | 52 | # --- build --release --manifest-path examples/apache-nimble/Cargo.toml --target thumbv7em-none-eabihf |
46 | 53 |
|
47 | | -cargo fmt --check --manifest-path ./host/Cargo.toml |
48 | | -cargo fmt --check --manifest-path ./host-macros/Cargo.toml |
49 | | - |
50 | | -cargo clippy --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security |
51 | | -cargo clippy --manifest-path ./host-macros/Cargo.toml |
52 | | - |
53 | 54 | cargo test --manifest-path ./host/Cargo.toml --lib -- --nocapture |
54 | 55 | cargo test --manifest-path ./host/Cargo.toml --no-run |
55 | | -#cargo test --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security --lib -- --nocapture |
56 | | - # Fails with: |
57 | | - # thread 'security_manager::pairing::peripheral::tests::just_works_with_irk_distribution' panicked at src/security_manager/pairing/peripheral.rs:911:13: |
58 | | - # assertion failed: pairing_data.local_features.responder_key_distribution.identity_key() |
| 56 | +cargo test --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security --lib -- --nocapture |
59 | 57 |
|
60 | 58 | cargo test --manifest-path ./host/Cargo.toml --features central,gatt,peripheral,scan,security --no-run |
61 | 59 | cargo test --manifest-path ./host-macros/Cargo.toml --lib -- --nocapture |
|
0 commit comments