test-driver (libgd-2.3.1) | : | test-driver (libgd-2.3.2) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# test-driver - basic testsuite driver script. | # test-driver - basic testsuite driver script. | |||
scriptversion=2013-07-13.22; # UTC | scriptversion=2018-03-07.03; # UTC | |||
# Copyright (C) 2011-2014 Free Software Foundation, Inc. | # Copyright (C) 2011-2020 Free Software Foundation, Inc. | |||
# | # | |||
# This program is free software; you can redistribute it and/or modify | # 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 | # it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 2, or (at your option) | # the Free Software Foundation; either version 2, or (at your option) | |||
# any later version. | # any later version. | |||
# | # | |||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | # GNU General Public License for more details. | |||
# | # | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <https://www.gnu.org/licenses/>. | |||
# As a special exception to the GNU General Public License, if you | # As a special exception to the GNU General Public License, if you | |||
# distribute this file as part of a program that contains a | # distribute this file as part of a program that contains a | |||
# configuration script generated by Autoconf, you may include it under | # configuration script generated by Autoconf, you may include it under | |||
# the same distribution terms that you use for the rest of that program. | # the same distribution terms that you use for the rest of that program. | |||
# This file is maintained in Automake, please report | # This file is maintained in Automake, please report | |||
# bugs to <bug-automake@gnu.org> or send patches to | # bugs to <bug-automake@gnu.org> or send patches to | |||
# <automake-patches@gnu.org>. | # <automake-patches@gnu.org>. | |||
skipping to change at line 45 | skipping to change at line 45 | |||
{ | { | |||
echo "$0: $*" >&2 | echo "$0: $*" >&2 | |||
print_usage >&2 | print_usage >&2 | |||
exit 2 | exit 2 | |||
} | } | |||
print_usage () | print_usage () | |||
{ | { | |||
cat <<END | cat <<END | |||
Usage: | Usage: | |||
test-driver --test-name=NAME --log-file=PATH --trs-file=PATH | test-driver --test-name NAME --log-file PATH --trs-file PATH | |||
[--expect-failure={yes|no}] [--color-tests={yes|no}] | [--expect-failure {yes|no}] [--color-tests {yes|no}] | |||
[--enable-hard-errors={yes|no}] [--] | [--enable-hard-errors {yes|no}] [--] | |||
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] | TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] | |||
The '--test-name', '--log-file' and '--trs-file' options are mandatory. | The '--test-name', '--log-file' and '--trs-file' options are mandatory. | |||
See the GNU Automake documentation for information. | ||||
END | END | |||
} | } | |||
test_name= # Used for reporting. | test_name= # Used for reporting. | |||
log_file= # Where to save the output of the test script. | log_file= # Where to save the output of the test script. | |||
trs_file= # Where to save the metadata of the test run. | trs_file= # Where to save the metadata of the test run. | |||
expect_failure=no | expect_failure=no | |||
color_tests=no | color_tests=no | |||
enable_hard_errors=yes | enable_hard_errors=yes | |||
while test $# -gt 0; do | while test $# -gt 0; do | |||
skipping to change at line 143 | skipping to change at line 145 | |||
# Register the test result, and other relevant metadata. | # Register the test result, and other relevant metadata. | |||
echo ":test-result: $res" > $trs_file | echo ":test-result: $res" > $trs_file | |||
echo ":global-test-result: $res" >> $trs_file | echo ":global-test-result: $res" >> $trs_file | |||
echo ":recheck: $recheck" >> $trs_file | echo ":recheck: $recheck" >> $trs_file | |||
echo ":copy-in-global-log: $gcopy" >> $trs_file | echo ":copy-in-global-log: $gcopy" >> $trs_file | |||
# Local Variables: | # Local Variables: | |||
# mode: shell-script | # mode: shell-script | |||
# sh-indentation: 2 | # sh-indentation: 2 | |||
# eval: (add-hook 'write-file-hooks 'time-stamp) | # eval: (add-hook 'before-save-hook 'time-stamp) | |||
# time-stamp-start: "scriptversion=" | # time-stamp-start: "scriptversion=" | |||
# time-stamp-format: "%:y-%02m-%02d.%02H" | # time-stamp-format: "%:y-%02m-%02d.%02H" | |||
# time-stamp-time-zone: "UTC" | # time-stamp-time-zone: "UTC0" | |||
# time-stamp-end: "; # UTC" | # time-stamp-end: "; # UTC" | |||
# End: | # End: | |||
End of changes. 8 change blocks. | ||||
8 lines changed or deleted | 10 lines changed or added |