WIP - setup czech click tests in CI

tychovrahe/fw_translations/mpu
grdddj 8 months ago
parent 3593c0574c
commit a7c51104ae

@ -392,6 +392,37 @@ core click test:
expire_in: 1 week
when: always
core click test czech:
stage: test
<<: *gitlab_caching
needs:
- core unix frozen debug build
variables:
TREZOR_PROFILING: 1
TEST_LANG: "cs" # czech
script:
- $NIX_SHELL --run "poetry run make -C core test_emu_click_ui | ts -s"
after_script:
- mv core/src/.coverage core/.coverage.test_click
- mv tests/ui_tests/reports/test/ test_ui_report
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ci/ui_test_records/
- test_ui_report
- tests/ui_tests/screens/
- tests/ui_tests/fixtures.suggestion.json
- tests/ui_tests/fixtures.results.json
- tests/trezor.log
- tests/junit.xml
- core/.coverage.*
reports:
junit: tests/junit.xml
expire_in: 1 week
when: always
# Click tests.
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
core click R test:
@ -423,6 +454,36 @@ core click R test:
expire_in: 1 week
when: always
core click R test czech:
stage: test
<<: *gitlab_caching
needs:
- core unix frozen R debug build
variables:
TREZOR_PROFILING: 1
TEST_LANG: "cs" # czech
script:
- nix-shell --run "poetry run make -C core test_emu_click_ui | ts -s"
after_script:
- mv core/src/.coverage core/.coverage.test_click
- mv tests/ui_tests/reports/test/ test_ui_report
- nix-shell --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- ci/ui_test_records/
- test_ui_report
- tests/ui_tests/screens/
- tests/ui_tests/fixtures.suggestion.json
- tests/ui_tests/fixtures.results.json
- tests/trezor.log
- tests/junit.xml
reports:
junit: tests/junit.xml
expire_in: 1 week
when: always
core click asan test:
stage: test
<<: *gitlab_caching

@ -142,7 +142,7 @@ Bitcoin-only version.
## TEST stage - [test.yml](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml)
All the tests run test cases on the freshly built emulators from the previous `BUILD` stage.
Consists of **40 jobs** below:
Consists of **42 jobs** below:
### [core unit python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L15)
Python unit tests, checking core functionality.
@ -190,64 +190,68 @@ FIDO2 device tests.
Click tests - UI.
See [docs/tests/click-tests](../tests/click-tests.md) for more info.
### [core click R test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L397)
### [core click test czech](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L395)
### [core click R test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L428)
Click tests.
See [docs/tests/click-tests](../tests/click-tests.md) for more info.
### [core click asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L426)
### [core click R test czech](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L457)
### [core click asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L487)
### [core upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L447)
### [core upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L508)
Upgrade tests.
See [docs/tests/upgrade-tests](../tests/upgrade-tests.md) for more info.
### [core upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L466)
### [core upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L527)
### [core persistence test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L488)
### [core persistence test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L549)
Persistence tests - UI.
### [core persistence asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L518)
### [core persistence asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L579)
### [core hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L536)
### [core hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L597)
### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L555)
### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L616)
### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L587)
### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L648)
Legacy device test - UI.
### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L615)
### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L676)
### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L627)
### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L688)
### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L647)
### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L708)
### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L662)
### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L723)
### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L681)
### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L742)
### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L702)
### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L763)
### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L722)
### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L783)
### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L741)
### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L802)
### [rust test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L750)
### [rust test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L811)
### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L760)
### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L821)
### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L784)
### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L845)
### [core firmware flash size checker](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L810)
### [core firmware flash size checker](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L871)
Finds out how much flash space we have left in the firmware build
Fails if the free space is less than certain threshold
### [core firmware flash size compare master](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L823)
### [core firmware flash size compare master](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L884)
Compares the current flash space with the situation in the current master
Fails if the new binary is significantly larger than the master one
(the threshold is defined in the script, currently 5kb).
Allowing fir failure, not to prevent the merge.
Also generates a report with the current situation
### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L838)
### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L899)
---
## TEST-HW stage - [test-hw.yml](https://github.com/trezor/trezor-firmware/blob/master/ci/test-hw.yml)

Loading…
Cancel
Save