mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
ci(core): enable rust unit tests
[no changelog]
This commit is contained in:
parent
a007e062ab
commit
a7a7570496
@ -97,6 +97,8 @@ core unix regular build:
|
||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||
paths:
|
||||
- core/build/unix/trezor-emu-core
|
||||
- core/build/unix/genhdr/qstrdefs.generated.h # needed by test_rust
|
||||
- core/build/unix/rust # needed by test_rust
|
||||
expire_in: 1 week
|
||||
|
||||
core unix frozen regular build:
|
||||
|
@ -8,6 +8,7 @@ core unit test:
|
||||
- core unix regular build
|
||||
script:
|
||||
- nix-shell --run "poetry run make -C core test | ts -s"
|
||||
- nix-shell --run "poetry run make -C core test_rust | ts -s"
|
||||
|
||||
core device ui test:
|
||||
stage: test
|
||||
|
@ -78,6 +78,9 @@ emu: ## run emulator
|
||||
test: ## run unit tests
|
||||
cd tests ; ./run_tests.sh $(TESTOPTS)
|
||||
|
||||
test_rust: ## run rs unit tests
|
||||
cd embed/rust ; cargo test -- --test-threads=1
|
||||
|
||||
test_emu: ## run selected device tests from python-trezor
|
||||
$(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user