1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-14 09:20:55 +00:00

ci(core): enable rust unit tests

[no changelog]
This commit is contained in:
Martin Milata 2021-09-08 14:16:40 +02:00
parent a007e062ab
commit a7a7570496
3 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,8 @@ core unix regular build:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths: paths:
- core/build/unix/trezor-emu-core - 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 expire_in: 1 week
core unix frozen regular build: core unix frozen regular build:

View File

@ -8,6 +8,7 @@ core unit test:
- core unix regular build - core unix regular build
script: script:
- nix-shell --run "poetry run make -C core test | ts -s" - 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: core device ui test:
stage: test stage: test

View File

@ -78,6 +78,9 @@ emu: ## run emulator
test: ## run unit tests test: ## run unit tests
cd tests ; ./run_tests.sh $(TESTOPTS) 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 test_emu: ## run selected device tests from python-trezor
$(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) $(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS)