Skip to content

Commit

Permalink
add ginko tests
Browse files Browse the repository at this point in the history
  • Loading branch information
denarsh committed Jul 3, 2024
1 parent e41eaf5 commit 79c1a82
Show file tree
Hide file tree
Showing 10 changed files with 2,927 additions and 2,389 deletions.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
GOTEST ?= CGO_ENABLED=0 go test

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
Expand All @@ -18,7 +20,7 @@ bundle:
kustomize build config/manifests | operator-sdk generate bundle -q --overwrite --version 4.3.16

# Run tests
test: generate fmt vet manifests
test: generate fmt vet manifests test-controller
rm -f ./controllers/test-report.html ./controllers/junit.xml
CNVRG_OPERATOR_MAX_CONCURRENT_RECONCILES=1 go test ./controllers/ -v -timeout 40m

Expand Down Expand Up @@ -179,3 +181,11 @@ else
CONTROLLER_GEN=$(shell which controller-gen)
endif

.PHONY: fetch-ext-bin
fetch-ext-bin: ## fetch external kubebuilder bins required to run testenv
source ./scripts/fetch_ext_bins.sh; fetch_tools; setup_envs;

.PHONY: test-controller
test-controller: fetch-ext-bin
$(GOTEST) ./controllers/test/...

Loading

0 comments on commit 79c1a82

Please sign in to comment.