File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
openshift/default-catalog-consistency Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1+ # Binaries for programs and plugins
2+ bin /*
Original file line number Diff line number Diff line change @@ -23,10 +23,26 @@ help: #HELP Display essential help.
2323
2424# SECTION Tests
2525
26+ # Set the Ginkgo binary path. Assumes it's installed via `go install`
27+ GOBIN ?= $(shell go env GOBIN)
28+ ifeq ($(GOBIN ) ,)
29+ GOBIN := $(shell go env GOPATH) /bin
30+ endif
31+
32+ TOOLS_BIN_DIR := $(CURDIR ) /bin
33+ GINKGO := $(TOOLS_BIN_DIR ) /ginkgo
34+
35+ .PHONY : install-tools
36+ install-tools : $(GINKGO ) # HELP Build vendored CLI tools
37+
38+ $(GINKGO ) : vendor/modules.txt
39+ go build -mod=vendor -o $(GINKGO ) ./vendor/github.com/onsi/ginkgo/v2/ginkgo
40+
2641.PHONY : test-catalog
27- test-catalog : # HELP Run the set of tests to validate the quality of catalogs
28- E2E_GINKGO_OPTS=" $( if $( ARTIFACT_DIR) ,--output-dir=' $(ARTIFACT_DIR)' ) --junit-report junit_e2e.xml" \
29- go test -count=1 -v ./test/validate/...;
42+ test-catalog : install-tools $(GINKGO ) # HELP Run the set of tests to validate the quality of catalogs
43+ $(GINKGO ) $(if $(ARTIFACT_DIR ) ,--output-dir='$(ARTIFACT_DIR ) ') \
44+ --junit-report=junit_olm.xml ./test/validate/...
45+
3046
3147# SECTION Development
3248
You can’t perform that action at this time.
0 commit comments