You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -810,6 +810,7 @@ workspace: ## Set up the Go workspace.
810
810
go work init
811
811
go work use .
812
812
go work use ./azure-ipam
813
+
go work use ./azure-ip-masq-merger
813
814
go work use ./build/tools
814
815
go work use ./dropgz
815
816
go work use ./zapai
@@ -822,9 +823,11 @@ RESTART_CASE ?= false
822
823
# CNI type is a key to direct the types of state validation done on a cluster.
823
824
CNI_TYPE ?= cilium
824
825
825
-
test-all: ## run all unit tests.
826
-
go test -mod=readonly -buildvcs=false -tags "unit" --skip 'TestE2E*' -race -covermode atomic -coverprofile=coverage-all.out $(COVER_PKG)/...
827
-
go tool cover -func=coverage-all.out
826
+
test-all: test-azure-ipam test-azure-ip-masq-merger test-main ## run all unit tests.
827
+
828
+
test-main:
829
+
go test -mod=readonly -buildvcs=false -tags "unit" --skip 'TestE2E*' -race -covermode atomic -coverprofile=coverage-main.out $(COVER_PKG)/...
830
+
go tool cover -func=coverage-main.out
828
831
829
832
test-integration: ## run all integration tests.
830
833
AZURE_IPAM_VERSION=$(AZURE_IPAM_VERSION)\
@@ -855,10 +858,10 @@ test-extended-cyclonus: ## run the cyclonus test for npm.
855
858
cd ..
856
859
857
860
test-azure-ipam: ## run the unit test for azure-ipam
858
-
cd$(AZURE_IPAM_DIR)&& go test
861
+
cd$(AZURE_IPAM_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ipam.out && go tool cover -func=../coverage-azure-ipam.out
859
862
860
863
test-azure-ip-masq-merger: ## run the unit test for azure-ip-masq-merger
861
-
cd$(AZURE_IP_MASQ_MERGER_DIR)&& go test
864
+
cd$(AZURE_IP_MASQ_MERGER_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ip-masq-merger.out && go tool cover -func=../coverage-azure-ip-masq-merger.out
0 commit comments