diff --git a/Makefile b/Makefile index f4ac7bb..2bf4cae 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,6 @@ build: install-lint: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GO_PATH}/bin ${GOLANGCI_VERSION} test: - scripts/test.sh \ No newline at end of file + scripts/test.sh +vet: + go vet ${GO_PACKAGES} \ No newline at end of file diff --git a/scripts/test.sh b/scripts/test.sh index 809d573..961be99 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,4 +1,4 @@ #!/bin/bash -make build -./basic 2>&1| sed 's/time="[^"]*" //' > test/actual.txt -diff test/actual.txt test/expected.txt \ No newline at end of file +make build +./basic 2>&1 | sed 's/time="[^"]*" //' >test/actual.txt +diff test/actual.txt test/expected.txt