summaryrefslogtreecommitdiff
path: root/build-aux/test-driver
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/test-driver')
-rwxr-xr-xbuild-aux/test-driver37
1 files changed, 16 insertions, 21 deletions
diff --git a/build-aux/test-driver b/build-aux/test-driver
index 2c2a38b..d81fba7 100755
--- a/build-aux/test-driver
+++ b/build-aux/test-driver
@@ -1,9 +1,9 @@
#! /bin/sh
# test-driver - basic testsuite driver script.
-scriptversion=2024-06-19.01; # UTC
+scriptversion=2025-06-18.21; # UTC
-# Copyright (C) 2011-2024 Free Software Foundation, Inc.
+# Copyright (C) 2011-2025 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -64,27 +64,22 @@ expect_failure=no
color_tests=no
collect_skipped_logs=yes
enable_hard_errors=yes
-while test $# -gt 1; do
- arg=${1%=*}
- val=${1#*=}
- if [ $arg = $val ]; then
- val=$2
- shift
- fi
- case $arg in
+while test $# -gt 0; do
+ case $1 in
--help) print_usage; exit $?;;
--version) echo "test-driver (GNU Automake) $scriptversion"; exit $?;;
- --test-name) test_name=$val;;
- --log-file) log_file=$val;;
- --trs-file) trs_file=$val;;
- --color-tests) color_tests=$val;;
- --collect-skipped-logs) collect_skipped_logs=$val;;
- --expect-failure) expect_failure=$val;;
- --enable-hard-errors) enable_hard_errors=$val;;
- --) break;;
+ --test-name) test_name=$2; shift;;
+ --log-file) log_file=$2; shift;;
+ --trs-file) trs_file=$2; shift;;
+ --color-tests) color_tests=$2; shift;;
+ --collect-skipped-logs) collect_skipped_logs=$2; shift;;
+ --expect-failure) expect_failure=$2; shift;;
+ --enable-hard-errors) enable_hard_errors=$2; shift;;
+ --) shift; break;;
-*) usage_error "invalid option: '$1'";;
+ *) break;;
esac
- [ $arg != $val ] && shift
+ shift
done
missing_opts=
@@ -157,9 +152,9 @@ echo ":copy-in-global-log: $gcopy" >> $trs_file
# Local Variables:
# mode: shell-script
# sh-indentation: 2
-# eval: (add-hook 'before-save-hook 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp nil t)
# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-format: "%Y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End: