Skip to content

Commit

Permalink
add zombienet test and install to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Apr 13, 2023
1 parent fc81fb8 commit adcb533
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ifndef VERSION
VERSION=latest
endif
FULLDOCKERNAME=$(COMPANY)/$(NAME):$(VERSION)
OS:=$(shell uname)

.PHONY: help lint test install build clean start docker gossamer build-debug
all: help
Expand Down Expand Up @@ -127,3 +128,17 @@ gossamer: clean build
## install: install the gossamer binary in $GOPATH/bin
install: build
mv ./bin/gossamer $(GOPATH)/bin/gossamer

install-zombienet:
ifeq ($(OS),Darwin)
wget -O /usr/local/bin/zombienet https://github.com/paritytech/zombienet/releases/download/v1.3.41/zombienet-macos
else ifeq ($(OS),Linux)
wget -O $(GOPATH)/bin/zombienet https://github.com/paritytech/zombienet/releases/download/v1.3.41/zombienet-linux-x64
else
@echo "Zombienet for $(OS) is not supported"
exit 1
endif
chmod a+x $(GOPATH)/bin/zombienet

zombienet-test: install install-zombienet
zombienet test -p native zombienet_tests/functional/0001-basic-network.zndsl

0 comments on commit adcb533

Please sign in to comment.