mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
ci: add Safe 3 to GH actions rust unit tests
[no changelog]
This commit is contained in:
parent
0be2aa61b4
commit
9cd97565c9
10
.github/workflows/core.yml
vendored
10
.github/workflows/core.yml
vendored
@ -123,8 +123,14 @@ jobs:
|
|||||||
needs: core_emu
|
needs: core_emu
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
model: [T2T1] # FIXME: T2B1 https://github.com/trezor/trezor-firmware/issues/2724
|
model: [T2T1, T2B1]
|
||||||
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
|
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
|
||||||
|
# T2B1 fails due to rust clippy error which is hard to reproduce, see discussion here:
|
||||||
|
# https://github.com/trezor/trezor-firmware/pull/2196
|
||||||
|
# The problem might be in conflicting versions of clippy, let's see if this helps:
|
||||||
|
# https://github.com/trezor/trezor-firmware/issues/3337
|
||||||
|
exclude:
|
||||||
|
- model: T2B1
|
||||||
env:
|
env:
|
||||||
TREZOR_MODEL: ${{ matrix.model == 'T2T1' && 'T' || 'R' }}
|
TREZOR_MODEL: ${{ matrix.model == 'T2T1' && 'T' || 'R' }}
|
||||||
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
|
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
|
||||||
@ -146,7 +152,7 @@ jobs:
|
|||||||
needs: core_emu
|
needs: core_emu
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
model: [T2T1] # FIXME: T2B1 https://github.com/trezor/trezor-firmware/issues/2724
|
model: [T2T1, T2B1]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -171,10 +171,10 @@ mod tests {
|
|||||||
assert_eq!(features.vendor(), "trezor.io");
|
assert_eq!(features.vendor(), "trezor.io");
|
||||||
assert_eq!(features.initialized(), true);
|
assert_eq!(features.initialized(), true);
|
||||||
assert_eq!(features.firmware_present(), false);
|
assert_eq!(features.firmware_present(), false);
|
||||||
assert_eq!(features.model(), "T");
|
|
||||||
assert_eq!(features.initialized(), true);
|
assert_eq!(features.initialized(), true);
|
||||||
assert_eq!(features.pin_protection(), false);
|
assert_eq!(features.pin_protection(), false);
|
||||||
assert_eq!(features.passphrase_protection(), false);
|
assert_eq!(features.passphrase_protection(), false);
|
||||||
|
assert!(["T", "Safe 3"].contains(&features.model()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user