forked from Zondax/ledger-ironfish-dkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
TESTS_JS_PACKAGE = "@zondax/ledger-ironfish"
TESTS_JS_DIR = $(CURDIR)/js
ifeq ($(BOLOS_SDK),)
# In this case, there is not predefined SDK and we run dockerized
# When not using the SDK, we override and build the XL complete app
PRODUCTION_BUILD ?= 1
include $(CURDIR)/deps/ledger-zxlib/dockerized_build.mk
else
default:
$(MAKE) -C app
%:
$(info "Calling app Makefile for target $@")
COIN=$(COIN) $(MAKE) -C app $@
endif
# Copy files quickly from a source to a folder with a regular expresions
# In some cases, when something change in the screens for some command, it changes for each participant.
# This makes it hard and tedious to update each participant snapshots (one per test run).
# This allows to quickly update the other images from the first run
.PHONY: copy-files
copy-files:
find . -type d -name "*sp-*" -exec cp ../snapshots-tmp/sp-dkg-p2-m2-0-identity/00003.png {} \;
.PHONY: rust_tests
rust_tests:
cd app && cargo +stable test --no-default-features
.PHONY: try_device
try_device:
cd tests_zemu && yarn try