mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-26 14:22:06 +00:00
chore(legacy,ci): add and use make targets for legacy
This commit is contained in:
parent
9e654abdb3
commit
967727a43c
@ -413,7 +413,7 @@ legacy test:
|
|||||||
variables:
|
variables:
|
||||||
EMULATOR: "1"
|
EMULATOR: "1"
|
||||||
script:
|
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:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -433,7 +433,7 @@ legacy asan test:
|
|||||||
variables:
|
variables:
|
||||||
EMULATOR: "1"
|
EMULATOR: "1"
|
||||||
script:
|
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:
|
legacy btconly test:
|
||||||
stage: test
|
stage: test
|
||||||
@ -445,7 +445,7 @@ legacy btconly test:
|
|||||||
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
||||||
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run legacy/script/test | ts -s"
|
- nix-shell --run "poetry run make -C legacy test_emu | ts -s"
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -467,7 +467,7 @@ legacy btconly asan test:
|
|||||||
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
||||||
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
||||||
script:
|
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:
|
legacy upgrade test:
|
||||||
|
@ -29,7 +29,20 @@ libtrezor.a:
|
|||||||
@printf " AR $@\n"
|
@printf " AR $@\n"
|
||||||
$(Q)$(AR) rcs $@ $^
|
$(Q)$(AR) rcs $@ $^
|
||||||
|
|
||||||
.PHONY: vendor
|
.PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
git submodule update --init --recursive
|
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…
Reference in New Issue
Block a user