diff --git a/ci/test.yml b/ci/test.yml index 7d17d6167..7f87b56db 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -413,7 +413,7 @@ legacy test: variables: EMULATOR: "1" script: - - nix-shell --run "poetry run legacy/script/test | ts -s" + - nix-shell --run "poetry run make -C legacy test_emu_ui | ts -s" artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: @@ -433,7 +433,7 @@ legacy asan test: variables: EMULATOR: "1" script: - - nix-shell --run "poetry run legacy/script/test | ts -s" + - nix-shell --run "poetry run make -C legacy test_emu | ts -s" legacy btconly test: stage: test @@ -445,7 +445,7 @@ legacy btconly test: EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf" TREZOR_PYTEST_SKIP_ALTCOINS: 1 script: - - nix-shell --run "poetry run legacy/script/test | ts -s" + - nix-shell --run "poetry run make -C legacy test_emu | ts -s" artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: @@ -467,7 +467,7 @@ legacy btconly asan test: EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf" TREZOR_PYTEST_SKIP_ALTCOINS: 1 script: - - nix-shell --run "poetry run legacy/script/test | ts -s" + - nix-shell --run "poetry run make -C legacy test_emu | ts -s" legacy upgrade test: diff --git a/legacy/Makefile b/legacy/Makefile index 70972a878..cc445af4a 100644 --- a/legacy/Makefile +++ b/legacy/Makefile @@ -29,7 +29,20 @@ libtrezor.a: @printf " AR $@\n" $(Q)$(AR) rcs $@ $^ -.PHONY: vendor +.PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record vendor: git submodule update --init --recursive + +build_unix: ## build unix port + ./script/setup + EMULATOR=1 DEBUG_LINK=1 ./script/cibuild + +test_emu: ## run integration tests + ./script/test $(TESTOPTS) + +test_emu_ui: ## run ui integration tests + ./script/test --ui=test --ui-check-missing $(TESTOPTS) + +test_emu_ui_record: ## record and hash screens for ui integration tests + ./script/test --ui=record --ui-check-missing $(TESTOPTS)