Module Name:    src
Committed By:   blymn
Date:           Sun May 19 22:34:23 UTC 2019

Modified Files:
        src/tests/lib/libcurses: debug_test

Log Message:
Add option to specify an alternate library location to allow testing
a development library version without installing it.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/tests/lib/libcurses/debug_test:1.3
--- src/tests/lib/libcurses/debug_test:1.2	Mon Jan 21 21:21:13 2019
+++ src/tests/lib/libcurses/debug_test	Sun May 19 22:34:23 2019
@@ -20,6 +20,8 @@ usage() {
 	echo "         script."
 	echo "    -f : Specify the file name for curses tracing the default is"
 	echo "         ${CURSES_TRACE_FILE}"
+	echo "	  -L : Add the argument as a prefix to LD_LIBRARY_PATH to"
+	echo "	       use an alternate libcurses version"
 	echo "    -s : Specify the slave command.  Defaults to \"../slave/slave\""
 	echo "    -v : Enable verbose output"
 	echo
@@ -28,7 +30,7 @@ usage() {
 #
 ARGS=""
 #
-while getopts cf:s:v opt
+while getopts cf:L:s:v opt
 do
     case "${opt}" in
 	c)
@@ -43,6 +45,10 @@ do
 	    CURSES_TRACE_FILE=${OPTARG}
 	    ;;
 
+	L)
+	    LD_LIBRARY_PATH=${OPTARG}:${LD_LIBRARY_PATH}
+	    ;;
+
 	s)
 	    SLAVE=${OPTARG}
 	    ;;

Reply via email to