Include cmd/options in Makefile's test

1. Why is this change necessary ?
 Solves kubernetes/node-problem-detector#163

2. How does this change address the issue ?
 Unit testing for node-problem-detector/cmd/options is yet to be
done and the corresponding package path needs to be included in makefile
test

3. How to verify this change ?
 make test command should run the test TestSetNodeNameOrDie with admin
privileges.

Signed-off-by: gkGaneshR <gkganesh126@gmail.com>
This commit is contained in:
gkGaneshR
2018-03-02 21:49:07 +05:30
parent 25b6c169a2
commit 3868f48586
+1 -1
View File
@@ -87,7 +87,7 @@ Dockerfile: Dockerfile.in
sed -e 's|@BASEIMAGE@|$(BASEIMAGE)|g' $< >$@
test: vet fmt
go test -timeout=1m -v -race ./pkg/... $(BUILD_TAGS)
go test -timeout=1m -v -race ./cmd/options ./pkg/... $(BUILD_TAGS)
build-container: ./bin/node-problem-detector Dockerfile
docker build -t $(IMAGE) .