Skip to content

Commit

Permalink
Point UT and FV test invocations at their respective start directorie…
Browse files Browse the repository at this point in the history
…s instead of filtering out unwanted directories
  • Loading branch information
Josh-Tigera committed Jul 13, 2023
1 parent 02f7935 commit db16283
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -285,21 +285,22 @@ clean:
###############################################################################
# Tests
###############################################################################
WHAT?=.
UT_DIR?=./pkg
FV_DIR?=./test
GINKGO_ARGS?= -v
GINKGO_FOCUS?=.*

ut:
-mkdir -p .go-pkg-cache report
$(CONTAINERIZED) $(CALICO_BUILD) sh -c '$(GIT_CONFIG_SSH) \
ginkgo -r --skipPackage "./test" -focus="$(GINKGO_FOCUS)" $(GINKGO_ARGS) "$(WHAT)"'
ginkgo -r -focus="$(GINKGO_FOCUS)" $(GINKGO_ARGS) "$(UT_DIR)"'

## Run the functional tests
fv: cluster-create run-fvs cluster-destroy
run-fvs:
-mkdir -p .go-pkg-cache report
$(CONTAINERIZED) $(CALICO_BUILD) sh -c '$(GIT_CONFIG_SSH) \
ginkgo -r --skipPackage "./pkg" -focus="$(GINKGO_FOCUS)" $(GINKGO_ARGS) "$(WHAT)"'
ginkgo -r -focus="$(GINKGO_FOCUS)" $(GINKGO_ARGS) "$(FV_DIR)"'

## Create a local kind dual stack cluster.
KUBECONFIG?=./kubeconfig.yaml
Expand Down

0 comments on commit db16283

Please sign in to comment.