Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Apr 3, 2024
1 parent ae63478 commit 07296ba
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/*)
Expand All @@ -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
Expand Down

0 comments on commit 07296ba

Please sign in to comment.