mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 17:09:44 +00:00
ci: add core unit test t1
[no changelog]
This commit is contained in:
parent
afd7cb3b01
commit
52f719ad81
15
ci/build.yml
15
ci/build.yml
@ -137,6 +137,21 @@ core unix frozen debug build:
|
|||||||
untracked: true
|
untracked: true
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
core unix frozen btconly debug t1 build:
|
||||||
|
stage: build
|
||||||
|
needs: []
|
||||||
|
variables:
|
||||||
|
BITCOIN_ONLY: "1"
|
||||||
|
TREZOR_MODEL: "1"
|
||||||
|
script:
|
||||||
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
||||||
|
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-bitcoinonly
|
||||||
|
artifacts:
|
||||||
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
|
paths:
|
||||||
|
- core/build/unix # most of it needed by test_rust
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
core macos frozen regular build:
|
core macos frozen regular build:
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
|
10
ci/test.yml
10
ci/test.yml
@ -11,6 +11,16 @@ core unit test:
|
|||||||
- nix-shell --run "poetry run make -C core test_rust | ts -s"
|
- nix-shell --run "poetry run make -C core test_rust | ts -s"
|
||||||
- nix-shell --run "poetry run make -C core clippy | ts -s"
|
- nix-shell --run "poetry run make -C core clippy | ts -s"
|
||||||
|
|
||||||
|
core unit test t1:
|
||||||
|
stage: test
|
||||||
|
needs:
|
||||||
|
- core unix frozen btconly debug t1 build
|
||||||
|
variables:
|
||||||
|
BITCOIN_ONLY: "1"
|
||||||
|
TREZOR_MODEL: "1"
|
||||||
|
script:
|
||||||
|
- nix-shell --run "poetry run make -C core test_rust | ts -s"
|
||||||
|
|
||||||
core device ui test:
|
core device ui test:
|
||||||
stage: test
|
stage: test
|
||||||
needs:
|
needs:
|
||||||
|
@ -79,7 +79,7 @@ test: ## run unit tests
|
|||||||
cd tests ; ./run_tests.sh $(TESTOPTS)
|
cd tests ; ./run_tests.sh $(TESTOPTS)
|
||||||
|
|
||||||
test_rust: ## run rs unit tests
|
test_rust: ## run rs unit tests
|
||||||
cd embed/rust ; cargo test --features test,ui,ui_debug -- --test-threads=1
|
cd embed/rust ; cargo test --no-default-features --features model_t$(shell echo -e $(TREZOR_MODEL) | tr "T" "t"),test,ui,ui_debug -- --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)
|
||||||
|
Loading…
Reference in New Issue
Block a user