1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 05:03:07 +00:00

chore(legacy,ci): add and use make targets for legacy

This commit is contained in:
grdddj 2022-02-08 17:45:12 +01:00 committed by matejcik
parent 9e654abdb3
commit 967727a43c
2 changed files with 18 additions and 5 deletions

View File

@ -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:

View File

@ -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)