Skip to content

Commit

Permalink
test: pool, position test
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Apr 4, 2024
1 parent b44fe52 commit b358d13
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,17 @@ test.prepare:
mv $(TESTFILE_ROUTER) ".test/examples/gno.land/r/demo/router"
mv $(TESTFILE_STAKER) ".test/examples/gno.land/r/demo/staker"

.PHONY: test
test: test.prepare ## Test packages and realms using gno, excluding perft tests.
cd .test/examples; GNOROOT="$(PWD)/.test" $(GNOCMD) test -run '^Test(?:[^P]|P[^e]|Pe[^r])' $(GNO_TEST_FLAGS) $(GNO_TEST_PKGS)

.PHONY: test.pool
test.pool: test.prepare ## Run perft tests.
test.pool:
cd .test/examples; GNOROOT="$(PWD)/.test" $(GNOCMD) test $(GNO_TEST_FLAGS) gno.land/r/demo/pool

.PHONY: test.perft
test.perft: test.prepare ## Run perft tests.
cd .test/examples; GNOROOT="$(PWD)/.test" $(GNOCMD) test -run 'TestPerft' $(GNO_TEST_FLAGS) gno.land/p/demo/chess
.PHONY: test.position
test.position:
cd .test/examples; GNOROOT="$(PWD)/.test" $(GNOCMD) test $(GNO_TEST_FLAGS) gno.land/r/demo/position

.PHONY: test.integration
test.integration: ## Test the realm using integration tests.
go test -v ./util/integration

.PHONY: test.all
test.all: test test.perft test.integration ## Run all tests
test.all: test.pool test.position

0 comments on commit b358d13

Please sign in to comment.