Skip to content

Commit

Permalink
chore: refactor Makefile to follow new changes
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Apr 17, 2022
1 parent 1d2f3dd commit 6354d29
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: gnoland gnokey goscan logos

.PHONY: logos goscan gnoland gnokey gnofaucet logos reset test test1 test2 testrealm testrealm1 testrealm2 testpackages testpkgs
.PHONY: logos goscan gnoland gnokey gnofaucet logos reset

reset:
rm -rf testdir
Expand Down Expand Up @@ -42,45 +42,34 @@ logos:
clean:
rm -rf build

test:
echo "Running tests"
go test
go test tests/*.go -v -test.short --timeout 20m
# Test suite
.PHONY: test test.go test.gno test.files1 test.files2 test.realm test.packages
test: test.gno test.go
@echo "Full test suite finished."

test1:
echo "Running tests"
go test
go test tests/*.go -v -test.short -run "TestFiles1"
test.gno: test.files1 test.files2 test.realm test.packages
go test tests/*.go -v -run "TestFileStr"
go test tests/*.go -v -run "TestSelectors"

test2:
echo "Running tests"
go test
go test tests/*.go -v -test.short -run "TestFiles2"
test.go:
go test . -v
# -p 1 shows test failures as they come
# maybe another way to do this?
go test ./pkgs/... -v -p 1 -count 1

testrealm:
echo "Running tests"
go test
go test tests/*.go -v -run "TestFiles/^zrealm"
test.files1:
go test tests/*.go -v -test.short -run "TestFiles1/" --timeout 20m

testrealm1:
echo "Running tests"
go test
go test tests/*.go -v -run "TestFiles1/^zrealm"
test.files2:
go test tests/*.go -v -test.short -run "TestFiles2/" --timeout 20m

testrealm2:
echo "Running tests"
go test
go test tests/*.go -v -run "TestFiles2/^zrealm"
test.realm:
go test tests/*.go -v -run "TestFiles/^zrealm"

testpackages:
echo "Running tests"
test.packages:
go test tests/*.go -v -run "TestPackages"

testpkgs:
# -p 1 shows test failures as they come
# maybe another way to do this?
go test ./pkgs/... -p 1 -count 1

# Code gen
stringer:
stringer -type=Op

Expand Down

0 comments on commit 6354d29

Please sign in to comment.