aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/Makefile
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-04-01 12:47:57 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-04-01 12:48:01 -0700
commita1e2fb3ff225509885f82311096d0353e1117877 (patch)
tree234157e630ee6e051112d871508699c6d0bdcc05 /src/k8splugin/Makefile
parent5f5aabfbaff227c3c134c27ecbd7ecd347f74c09 (diff)
Remove build tags
Remove build tags as this is causing issues where mock plugins need to be loaded into files that do unit testing as well. Full integration testing is being done in the CSIT. Issue-ID: MULTICLOUD-559 Change-Id: Icd147dac80d16a6fb8f33048c76d4083158cecd2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/k8splugin/Makefile')
-rw-r--r--src/k8splugin/Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/k8splugin/Makefile b/src/k8splugin/Makefile
index 3bc7a0e6..d5bdb6fc 100644
--- a/src/k8splugin/Makefile
+++ b/src/k8splugin/Makefile
@@ -27,17 +27,10 @@ build: clean plugins test cover
deploy: build
.PHONY: test
-test: unit integration
-
-.PHONY: unit
-unit:
- @go test -v -tags 'unit' ./...
-
-.PHONY: integration
-integration: clean
- @go build -tags 'integration' -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
- @go build -tags 'integration' -buildmode=plugin -o ./mock_files/mock_plugins/mocknetworkplugin.so ./mock_files/mock_plugins/mocknetworkplugin.go
- @go test -v -tags 'integration' ./...
+test: clean
+ @go build -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
+ @go build -buildmode=plugin -o ./mock_files/mock_plugins/mocknetworkplugin.so ./mock_files/mock_plugins/mocknetworkplugin.go
+ @go test -v ./...
format:
@go fmt ./...
@@ -51,5 +44,5 @@ clean:
.PHONY: cover
cover:
- @go test -tags 'unit' ./... -coverprofile=coverage.out
+ @go test ./... -coverprofile=coverage.out
@go tool cover -html=coverage.out -o coverage.html