Por que meu make test
não está funcionando?
Eu tenho esse makefile simples e ao executar
# make test
make: 'test' is up to date.
De onde vem 'test' is up to date.
!?
makefile
BINARY_HTTP=http
build:
@go build -o bin/${BINARY_HTTP} cmd/${BINARY_HTTP}/main.go
run: build
ifdef skip-user
@./bin/${BINARY_HTTP}/main -skip-user
else
@./bin/${BINARY_HTTP}/main
endif
test:
@echo "test"
@go test -count=1 ./test
Se o test
comando no makefile for alterado para algo parecido, wee
o comando funciona? Por quê?
# make wee
test
makefile
BINARY_HTTP=http
build:
@go build -o bin/${BINARY_HTTP} cmd/${BINARY_HTTP}/main.go
run: build
ifdef skip-user
@./bin/${BINARY_HTTP}/main -skip-user
else
@./bin/${BINARY_HTTP}/main
endif
wee:
@echo "test"
@go test -count=1 ./test