diff --git a/Makefile b/Makefile index 6ece38b1f..73e838be2 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,10 @@ .PHONY: default default: help -GNOKEY ?= go run github.com/gnolang/gno/gno.land/cmd/gnokey -GNOLAND ?= go run github.com/gnolang/gno/gno.land/cmd/gnoland GNOCMD ?= go run github.com/gnoswap-labs/gno/gnovm/cmd/gno # gnoswap package -GNODEV ?= go run github.com/gnolang/gno/contribs/gnodev - GNOROOT ?= `$(GNOCMD) env GNOROOT` -GNO_TEST_FLAGS ?= -v -GNO_TEST_PKGS ?= gno.land/p/demo/chess/... gno.land/r/demo/chess -MNEMONIC_TEST1 ?= source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast +GNO_TEST_FLAGS ?= -v TEST_TOKENS := $(wildcard $(PWD)/__local/grc20_tokens/*) BASIC_TOKENS := $(wildcard $(PWD)/_deploy/r/demo/*) @@ -32,13 +26,14 @@ clean: ## Remove temporary files. .PHONY: test.prepare test.prepare: + echo $(GNOROOT) + rm -rf .test # Create fake GNOROOT with stdlibs, testing stdlibs, and p/ dependencies. # This is currently necessary as gno.mod's `replace` functionality is not linked with the VM. mkdir -p .test/gnovm/tests .test/examples/gno.land/p/demo .test/examples/gno.land/p/demo/grc .test/examples/gno.land/r/demo cp -r "$(GNOROOT)/gnovm/stdlibs" .test/gnovm/stdlibs cp -r "$(GNOROOT)/gnovm/tests/stdlibs" .test/gnovm/tests/stdlibs - cp -r "$(GNOROOT)/gnovm/tests/stdlibs/std" .test/gnovm/tests/stdlibs/std for i in gno.land/p/demo/ufmt gno.land/p/demo/avl gno.land/p/demo/json gno.land/p/demo/grc/exts gno.land/p/demo/grc/grc20 gno.land/p/demo/grc/grc721 gno.land/p/demo/users gno.land/p/demo/testutils gno.land/r/demo/users gno.land/r/demo/wugnot gno.land/r/demo/foo20; do \ cp -r "$(GNOROOT)/examples/$$i" ".test/examples/$$i";\ done