Module Name: src
Committed By: blymn
Date: Thu Jul 18 07:15:26 UTC 2024
Modified Files:
src/tests/lib/libcurses: debug_test
Log Message:
* Fix a bug where specifying -t would cause the director args to be
truncated.
* Add support for the director nofail option.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libcurses/debug_test
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libcurses/debug_test
diff -u src/tests/lib/libcurses/debug_test:1.7 src/tests/lib/libcurses/debug_test:1.8
--- src/tests/lib/libcurses/debug_test:1.7 Tue Mar 1 06:41:27 2022
+++ src/tests/lib/libcurses/debug_test Thu Jul 18 07:15:26 2024
@@ -26,10 +26,13 @@ usage() {
echo " ${CURSES_TRACE_FILE}"
echo " -L : Add the argument as a prefix to LD_LIBRARY_PATH to"
echo " use an alternate libcurses version"
+ echo " -n : Add the nofail option to the director invocation"
+ echo " : so the director won't exit on check_file mismatch"
echo " -s : Specify the slave command. Defaults to \"../slave/slave\""
echo " -v : Enable verbose output"
echo " -g : Enable check file generation if the file does not exists"
echo " -f : Forces check file generation if -g flag is set"
+ echo " -t : Specify the TERM to use for the tests"
echo
}
@@ -41,7 +44,7 @@ usage() {
#ARGS="-T ${BASEDIR} -I ${INCLUDE_PATH} -C ${CHECK_PATH}"
ARGS="-T ${BASEDIR} -C ${CHECK_PATH}"
#
-while getopts cf:F:L:s:vg opt
+while getopts cf:F:L:ns:t:vg opt
do
case "${opt}" in
c)
@@ -60,10 +63,18 @@ do
LD_LIBRARY_PATH=${OPTARG}:${LD_LIBRARY_PATH}
;;
+ n)
+ ARGS="-n ${ARGS} "
+ ;;
+
s)
SLAVE=${OPTARG}
;;
+ t)
+ ARGS="-t ${OPTARG} ${ARGS}"
+ ;;
+
v)
ARGS="-v ${ARGS}"
;;