TIMEOUT=5
endif
+ifeq ($(GINKGO_TIMEOUT),)
+GINKGO_TIMEOUT=3h
+endif
+
FORCE_BUILD?=true
.PHONY: help
@echo " DRYRUN=[true|false] - set up containers but don't run tests"
@echo " NO_COLOR=[true|false] - disables colorful Docker and Ginkgo output"
@echo " TIMEOUT=[minutes] - test timeout override (5 minutes by default)"
+ @echo " GINKGO_TIMEOUT=[Ns/m/h] - Ginkgo timeout override (3h by default)"
.PHONY: list-tests
list-tests:
--unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) --cpus=$(CPUS) \
--vppsrc=$(VPPSRC) --parallel=$(PARALLEL) --repeat=$(REPEAT) --cpu0=$(CPU0) \
--dryrun=$(DRYRUN) --skip=$(SKIP) --no_color=$(NO_COLOR) --timeout=$(TIMEOUT) \
- --vpp_cpus=$(VPP_CPUS); \
+ --ginkgo_timeout=$(GINKGO_TIMEOUT) --vpp_cpus=$(VPP_CPUS); \
./script/compress.sh $$?
.PHONY: test-debug
--unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) --cpus=$(CPUS) \
--vppsrc=$(VPPSRC) --parallel=$(PARALLEL) --repeat=$(REPEAT) --debug_build=true \
--cpu0=$(CPU0) --dryrun=$(DRYRUN) --skip=$(SKIP) --no_color=$(NO_COLOR) --timeout=$(TIMEOUT) \
- --vpp_cpus=$(VPP_CPUS); \
+ --ginkgo_timeout=$(GINKGO_TIMEOUT) --vpp_cpus=$(VPP_CPUS); \
./script/compress.sh $$?
.PHONY: wipe-lcov
-@bash ./hs_test.sh --coverage=true --persist=$(PERSIST) --verbose=$(VERBOSE) \
--unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST-HS) --cpus=$(CPUS) \
--vppsrc=$(VPPSRC) --cpu0=$(CPU0) --dryrun=$(DRYRUN) --skip=$(SKIP) --no_color=$(NO_COLOR) \
- --timeout=$(TIMEOUT) --vpp_cpus=$(VPP_CPUS); \
+ --timeout=$(TIMEOUT) --ginkgo_timeout=$(GINKGO_TIMEOUT) --vpp_cpus=$(VPP_CPUS); \
./script/compress.sh $$?
$(MAKE) -C ../.. test-cov-post-standalone HS_TEST=1
.PHONY: test-leak
test-leak: .deps.ok .build_debug.ok
@bash ./hs_test.sh --test=$(TEST) --debug_build=true --leak_check=true --vppsrc=$(VPPSRC) --timeout=$(TIMEOUT) \
- --vpp_cpus=$(VPP_CPUS);
+ --ginkgo_timeout=$(GINKGO_TIMEOUT) --vpp_cpus=$(VPP_CPUS);
.PHONY: test-perf
test-perf: FORCE_BUILD=false
test-perf: .deps.ok .build.ok
@bash ./hs_test.sh --persist=$(PERSIST) --verbose=$(VERBOSE) \
--test=$(TEST) --vppsrc=$(VPPSRC) --repeat=$(REPEAT) \
- --skip=$(SKIP) --no_color=$(NO_COLOR) --perf=true --timeout=$(TIMEOUT); \
+ --skip=$(SKIP) --no_color=$(NO_COLOR) --perf=true --timeout=$(TIMEOUT) \
+ --ginkgo_timeout=$(GINKGO_TIMEOUT); \
./script/compress.sh $$?
.PHONY: setup-cluster
--parallel=*)
ginkgo_args="$ginkgo_args -procs=${i#*=}"
;;
+ --ginkgo_timeout=*)
+ ginkgo_args="$ginkgo_args --timeout=${i#*=}"
+ ;;
--repeat=*)
ginkgo_args="$ginkgo_args --repeat=${i#*=}"
;;
mkdir -p summary
# shellcheck disable=SC2086
-sudo -E go run github.com/onsi/ginkgo/v2/ginkgo --json-report=summary/report.json $ginkgo_args -- $args
+CMD="sudo -E go run github.com/onsi/ginkgo/v2/ginkgo --json-report=summary/report.json $ginkgo_args -- $args"
+echo "$CMD"
+$CMD
exit_status=$?
if [ -e "summary/failed-summary.log" ]; then