add test targets in makefiles to run local tests

pull/207/head
Michelle Noorali 9 years ago
parent 8647270491
commit 1af4b9ae77

@ -48,3 +48,6 @@ $(TARGETS) : % : $(addsuffix %,$(SUBDIRS))
$(SUBDIRS_TARGETS) : $(SUBDIRS_TARGETS) :
$(MAKE) -C $(@D) $(@F:.%=%) $(MAKE) -C $(@D) $(@F:.%=%)
test:
go test -v ./...

@ -47,3 +47,5 @@ clean:
-docker rmi $(PREFIX)/$(IMAGE):$(TAG) -docker rmi $(PREFIX)/$(IMAGE):$(TAG)
rm -f expandybird rm -f expandybird
test:
go test -v ./...

@ -41,3 +41,5 @@ container:
clean: clean:
-docker rmi $(PREFIX)/$(IMAGE):$(TAG) -docker rmi $(PREFIX)/$(IMAGE):$(TAG)
test:
go test -v ./...

@ -42,3 +42,6 @@ container:
clean: clean:
-docker rmi $(PREFIX)/$(IMAGE):$(TAG) -docker rmi $(PREFIX)/$(IMAGE):$(TAG)
test:
go test -v ./...

Loading…
Cancel
Save