summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run b/test/run
index 43651654..88e5aabf 100755
--- a/test/run
+++ b/test/run
@@ -10,6 +10,7 @@ usage() {
echo
echo "Interesting options:"
echo " --tool_exec= Test against a different bash executable."
+ echo " --buffer_size Change expect match buffer size from the default of 2000 bytes."
echo " --debug Create a dbg.log in the test directory with detailed expect match information."
echo " --timeout Change expect timeout from the default of 10 seconds."
echo " --debug-xtrace Create an xtrace.log in the test directory with set -x output."
@@ -39,6 +40,8 @@ args=()
while [[ $# > 0 ]]; do
case "$1" in
--help|--usage) usage; exit 1;;
+ --buffer-size) shift; buffer_size=$1;;
+ --buffer-size=*) buffer_size=${1/--buffer-size=};;
--debug-xtrace) args+=(OPT_BASH_XTRACE=1);;
--timeout) shift; timeout=$1;;
--timeout=*) timeout=${1/--timeout=};;
@@ -54,6 +57,7 @@ while [[ $# > 0 ]]; do
shift
done
+[[ -n $buffer_size ]] && args+=("OPT_BUFFER_SIZE=$buffer_size")
[[ -n $timeout ]] && args+=("OPT_TIMEOUT=$timeout")
[[ -z $tool ]] && { echo "Must specify tool somehow"; exit 1; }