1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-23 15:08:19 +00:00

ci(core): make sure emulators are not failing on startup

[no changelog]
This commit is contained in:
Roman Zeyde 2025-06-10 18:57:03 +03:00 committed by Roman Zeyde
parent a56c5448e9
commit 4aadfa1f4f
2 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,7 @@ jobs:
- run: nix-shell --run "poetry run make -C core build_bootloader_emu" - run: nix-shell --run "poetry run make -C core build_bootloader_emu"
if: matrix.coins == 'universal' && matrix.asan == 'noasan' if: matrix.coins == 'universal' && matrix.asan == 'noasan'
- run: nix-shell --run "poetry run make -C core build_unix_frozen" - run: nix-shell --run "poetry run make -C core build_unix_frozen"
- run: nix-shell --run "poetry run make -C core test_emu_sanity"
- run: cp core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-${{ matrix.model }}-${{ matrix.coins }} - run: cp core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-${{ matrix.model }}-${{ matrix.coins }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:

View File

@ -182,6 +182,9 @@ test_rust: ## run rs unit tests
--no-default-features --features $(LAYOUT_FEATURE),power_manager,test \ --no-default-features --features $(LAYOUT_FEATURE),power_manager,test \
-- --test-threads=1 --nocapture -- --test-threads=1 --nocapture
test_emu_sanity: ## make sure the emulator doesn't crash on startup
$(EMU) --disable-animation --headless --temporary-profile -c -- trezorctl -v ping "Hello World!"
test_emu: ## run selected device tests from python-trezor test_emu: ## run selected device tests from python-trezor
$(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) --lang=$(TEST_LANG) $(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) --lang=$(TEST_LANG)