@echo " experimental: for scripts which are experimental, typically used to"
@echo " develop new scripts."
@echo
+ @echo "Tests which declare '#REGTEST_EXTRA=<name>' are skipped, and only run"
+ @echo "when <name> is passed to the script with --extra:"
+ @echo " $$ make reg-tests -- --extra qclient"
+ @echo
@echo "Note that 'reg-tests' target run '"$(REG_TEST_SCRIPT)"' script"
@echo "(see --help option of this script for more information)."
run-regtest.sh --type slow,default
+ --extra <names> also run the tests whose #REGTEST_EXTRA= directives are all
+ listed here, comma separated. Such tests are skipped by default, so that
+ tests relying on an optional helper do not run unless requested.
+
+ run-regtests.sh --extra qclient
+
--clean to cleanup previous reg-tests log directories and exit
run-regtests.sh --clean
set -- $(grep '^#[0-9A-Z_]*=' "$i")
IFS="$OLDIFS"
- exclude_targets=""; regtest_type=""; excludedtarget=""
+ exclude_targets=""; regtest_type=""; excludedtarget=""; regtest_extra=""
while [ $# -gt 0 ]; do
v="$1"; v="${v#*=}"
case "$1" in
"#EXCLUDE_TARGETS="*) exclude_targets="$v" ;;
"#REGTEST_TYPE="*) regtest_type="$v" ;;
+ "#REGTEST_EXTRA="*) regtest_extra="$v" ;;
"#EXCLUDE_TARGET="*) excludedtarget="${v%,*}" ;;
# Note: any new variable declared here must be initialized above.
esac
fi
fi
+ if [ -n "$regtest_extra" ] ; then
+ IFS=","; set -- $regtest_extra; IFS="$OLDIFS"
+ for extra in "$@"; do
+ if ! $(echo "$REGTESTS_EXTRA" | grep -wq "$extra") ; then
+ echo " Skipped $i because its extra '"$extra"' is not enabled" >> "${TESTDIR}/skipped.log"
+ skiptest=1
+ break
+ fi
+ done
+ fi
+
if [ -n "$excludedtarget" ]; then
exclude_targets="$exclude_targets,$excludedtarget"
fi
REGTESTS_TYPES="$2"
shift
;;
+ --extra)
+ REGTESTS_EXTRA="$2"
+ shift
+ ;;
--clean)
_cleanup
exit 0
VTEST_TIMEOUT="${VTEST_TIMEOUT:-10}"
TESTDIR="${TMPDIR:-/tmp}"
REGTESTS=""
+REGTESTS_EXTRA="${REGTESTS_EXTRA:-}"
LINEFEED="
"