github.com/verrazzano/verrazzano@v1.7.0/ci/make/tests.mk (about) 1 # Copyright (C) 2022, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 include env.mk 5 6 export TEST_ROOT ?= ${VZ_ROOT}/tests/e2e 7 export DUMP_ROOT_DIRECTORY ?= ${WORKSPACE}/cluster-snapshots 8 export GINGKO_ARGS ?= -v --keep-going --no-color --junit-report=test-report.xml --keep-separate-reports=true 9 10 run-test-parallel: export RANDOMIZE_TESTS = false 11 run-test-parallel: export RUN_PARALLEL = true 12 .PHONY: run-test-parallel 13 run-test-parallel: run-test 14 15 run-test-sequential: export RANDOMIZE_TESTS = false 16 run-test-sequential: export RUN_PARALLEL = false 17 .PHONY: run-sequential 18 run-test-sequential: run-test 19 20 run-test-randomize: export RANDOMIZE_TESTS = true 21 run-test-randomize: export RUN_PARALLEL = true 22 .PHONY: run-test-randomize 23 run-test-randomize: run-test 24 25 .PHONY: run-test 26 run-test: export TEST_REPORT ?= test-report.xml 27 run-test: export TEST_REPORT_DIR ?= ${WORKSPACE}/tests/e2e 28 run-test: 29 ${CI_SCRIPTS_DIR}/run-ginkgo.sh 30 31 .PHONY: dumplogs 32 dumplogs: 33 ${CI_SCRIPTS_DIR}/dumpRunLogs.sh ${DUMP_ROOT_DIRECTORY} 34 35 test-reports: export TEST_REPORT ?= test-report.xml 36 test-reports: export TEST_REPORT_DIR ?= ${WORKSPACE}/tests/e2e 37 .PHONY: test-reports 38 test-reports: 39 # Copy the generated test reports to WORKSPACE to archive them 40 # - Seems to not be working, handling this now in the run-ginkgo.sh script 41 mkdir -p ${TEST_REPORT_DIR} 42 rsync -v -a --prune-empty-dirs --exclude '*.go' --include '${TEST_REPORT}' ${TEST_ROOT} ${TEST_REPORT_DIR} 43 44 .PHONY: pipeline-artifacts 45 pipeline-artifacts: dumplogs test-reports