@@ -17,6 +17,7 @@ STATUS="FAILURE"
1717RUN=()
1818UNIT_PACKAGES=()
1919UNIT_FLAGS=()
20+ INTEGRATION_FLAGS=()
2021FILTER=()
2122
2223#
@@ -39,11 +40,6 @@ function print_outcome() {
3940 fi
4041}
4142
42- function print_list_of_integration_tests() {
43- go test -tags integration -list=. ./test/integration/... | grep ' ^Test'
44- exit 0
45- }
46-
4743function exit_msg() {
4844 # complain to STDERR and exit with error
4945 echo " $* " >&2
@@ -101,15 +97,14 @@ With no options passed, runs standard battery of tests (lint, unit, and integrat
10197
10298 -l, --lints Adds lint to the list of tests to run
10399 -u, --unit Adds unit to the list of tests to run
104- -v, --unit- verbose Enables verbose output for unit tests
100+ -v, --verbose Enables verbose output for unit and integration tests
105101 -w, --unit-without-cache Disables go test caching for unit tests
106102 -p <DIR>, --unit-test-package=<DIR> Run unit tests for specific go package(s)
107103 -e, --enable-race-detection Enables race detection for unit and integration tests
108104 -n, --config-next Changes BOULDER_CONFIG_DIR from test/config to test/config-next
109105 -i, --integration Adds integration to the list of tests to run
110106 -s, --start-py Adds start to the list of tests to run
111107 -g, --generate Adds generate to the list of tests to run
112- -o, --list-integration-tests Outputs a list of the available integration tests
113108 -f <REGEX>, --filter=<REGEX> Run only those tests matching the regular expression
114109
115110 Note:
@@ -125,7 +120,7 @@ With no options passed, runs standard battery of tests (lint, unit, and integrat
125120EOM
126121) "
127122
128- while getopts luvweciosmgnhp :f:-: OPT; do
123+ while getopts luvwecismgnhp :f:-: OPT; do
129124 if [ " $OPT " = - ]; then # long option: reformulate OPT and OPTARG
130125 OPT=" ${OPTARG%% =* } " # extract long option name
131126 OPTARG=" ${OPTARG# $OPT } " # extract long option argument (may be empty)
@@ -134,12 +129,11 @@ while getopts luvweciosmgnhp:f:-: OPT; do
134129 case " $OPT " in
135130 l | lints ) RUN+=(" lints" ) ;;
136131 u | unit ) RUN+=(" unit" ) ;;
137- v | unit- verbose ) UNIT_FLAGS+=(" -v" ) ;;
132+ v | verbose ) UNIT_FLAGS+=( " -v " ) ; INTEGRATION_FLAGS +=(" -v" ) ;;
138133 w | unit-without-cache ) UNIT_FLAGS+=(" -count=1" ) ;;
139134 p | unit-test-package ) check_arg; UNIT_PACKAGES+=(" ${OPTARG} " ) ;;
140135 e | enable-race-detection ) RACE=" true" ; UNIT_FLAGS+=(" -race" ) ;;
141136 i | integration ) RUN+=(" integration" ) ;;
142- o | list-integration-tests ) print_list_of_integration_tests ;;
143137 f | filter ) check_arg; FILTER+=(" ${OPTARG} " ) ;;
144138 s | start-py ) RUN+=(" start" ) ;;
145139 g | generate ) RUN+=(" generate" ) ;;
@@ -244,7 +238,11 @@ STAGE="integration"
244238if [[ " ${RUN[@]} " =~ " $STAGE " ]] ; then
245239 print_heading " Running Integration Tests"
246240 flush_redis
247- python3 test/integration-test.py --chisel --gotest " ${FILTER[@]} "
241+ if [[ " ${INTEGRATION_FLAGS[@]} " =~ " -v" ]] ; then
242+ python3 test/integration-test.py --chisel --gotestverbose " ${FILTER[@]} "
243+ else
244+ python3 test/integration-test.py --chisel --gotest " ${FILTER[@]} "
245+ fi
248246fi
249247
250248# Test that just ./start.py works, which is a proxy for testing that
0 commit comments