makefile: Ensure CLI is compiled before launching the integration-tests
If kubectl-gadget-$(GOHOSTOS)-$(GOHOSTARCH) does not exist, then
"make integration-tests" will fail. Therefore, it needs to be added as
dependency.
This commit also starts using kubectl-gadget instead of
kubectl-gadget-$(GOHOSTOS)-$(GOHOSTARCH) to prevent user from keeping
both binaries.
@@ -86,8 +86,8 @@ controller-tests: kube-apiserver etcd kubectl
go test -test.v ./pkg/controllers/... -controller-test
.PHONY: integration-tests
-integration-tests:
- KUBECTL_GADGET="$(shell pwd)/kubectl-gadget-$(GOHOSTOS)-$(GOHOSTARCH)" \
+integration-tests: kubectl-gadget
+ KUBECTL_GADGET="$(shell pwd)/kubectl-gadget" \
go test ./integration/... \
-integration \
-image $(CONTAINER_REPO):$(IMAGE_TAG)
