Skip to content

Commit

Permalink
makefile rule to run hardware wallet tests ref #34
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevAlDen committed May 14, 2019
1 parent 95f7f43 commit 308b148
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ test-libc: build-libc ## Run tests for libskycoin C client library
$(LDPATHVAR)="$(LDPATH):$(BUILD_DIR)/usr/lib:$(BUILDLIB_DIR)" $(BIN_DIR)/test_libskycoin_shared
$(LDPATHVAR)="$(LDPATH):$(BUILD_DIR)/usr/lib" $(BIN_DIR)/test_libskycoin_static

test-hw-crypto: ## Run tests for hardware wallet crypto API
make -C $(HARDWARE_WALLET_ROOT_DIR)/skycoin-api libskycoin-crypto-wrapper.a
$(CC) -o $(BIN_DIR)/test_hardwarewallet $(LIB_DIR)/cgo/tests/*.common.c $(LIB_DIR)/cgo/tests/testutils/libsky_string.c $(LIB_DIR)/cgo/tests/testutils/libsky_assert.c $(LIB_DIR)/cgo/tests/testutils/common.c $(LIB_DIR)/cgo/tests/test_main_hw.c -L$(HARDWARE_WALLET_ROOT_DIR)/skycoin-api -lskycoin-crypto-wrapper -lskycoin-crypto `pkg-config --cflags --libs check` -lpthread -Ilib/cgo -Iinclude -Ibuild/usr/include -I$(HARDWARE_WALLET_ROOT_DIR)
$(BIN_DIR)/test_hardwarewallet

docs-libc:
doxygen ./.Doxyfile
moxygen -o $(LIBDOC_DIR)/API.md $(LIBDOC_DIR)/xml/
Expand Down

0 comments on commit 308b148

Please sign in to comment.