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

pull/2131/head
grdddj 2 years ago committed by matejcik
parent 9e654abdb3
commit 967727a43c

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

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

Loading…
Cancel
Save