[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/floppy/ac-patches/93-fyi-debug-scripts.patch
From: |
Akim Demaille |
Subject: |
/floppy/ac-patches/93-fyi-debug-scripts.patch |
Date: |
Thu, 13 Sep 2001 08:56:00 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autotest/general.m4 (AT_INIT): Create and remove
`$as_me.[0-9]+' instead of `debug-[0-9]+.sh', so that multiple
test suites can cohabit.
Index: lib/autotest/general.m4
--- lib/autotest/general.m4 Wed, 12 Sep 2001 17:50:53 +0200 akim
+++ lib/autotest/general.m4 Wed, 12 Sep 2001 19:53:19 +0200 akim
@@ -141,8 +141,12 @@ m4_define([AT_data_files], [stdout expou
while test address@hidden:@] -gt 0; do
case $[1] in
- --help | -h) at_help=short ;;
- --full-help | -H ) at_help=long;;
+ --help | -h) at_help=short
+ ;;
+
+ --full-help | -H ) at_help=long
+ ;;
+
--version)
if test -n "$at_package_string"; then
echo "$as_me ($at_package_string)"
@@ -155,8 +159,10 @@ m4_define([AT_data_files], [stdout expou
;;
--clean | -c )
- rm -rf $at_data_files debug-*.sh $as_me.log devnull
- exit 0
+ rm -rf $at_data_files \
+ $as_me.[0-9] $as_me.[0-9][0-9] $as_me.[0-9][0-9][0-9] \
+ $as_me.log devnull
+ exit 0
;;
-d) at_debug=:
@@ -528,17 +534,22 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
fi
# Remove any debugging script resulting from a previous run.
- rm -f debug-*.sh
+ rm -f $as_me.[0-9] $as_me.[0-9][0-9] $as_me.[0-9][0-9][0-9]
+
echo
- echo $ECHO_N "Writing \`debug-NN.sh' scripts, with NN =$ECHO_C"
- for at_group in $at_fail_list; do
- echo $ECHO_N " $at_group$ECHO_C"
+ echo $ECHO_N "Writing \`$as_me.NN' scripts, with NN =$ECHO_C"
+ for at_group in $at_fail_list
+ do
+ # Normalize the names so that `ls' lists them in order.
+ at_format=`echo $at_last_test | sed 's/././g'`
+ at_number=`expr "000$at_group" : ".*\($at_format\)"`
+ echo $ECHO_N " $at_number$ECHO_C"
( echo "#! /bin/sh"
echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$[0]" \
'-v -d' "$at_debug_args" "$at_group" '${1+"address@hidden"}'
echo 'exit 1'
- ) >debug-$at_group.sh
- chmod +x debug-$at_group.sh
+ ) >$as_me.$at_number
+ chmod +x $as_me.$at_number
done
echo ', done'
echo
@@ -584,6 +595,8 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
m4_wrap([m4_divert_text([DEFAULT],
[# List of the tests.
at_tests_all="AT_TESTS_ALL "
+# Number of the last test.
+at_last_test=AT_ordinal
# Description of all the tests.
at_help_all="AT_help"
# List of the output files.
Index: lib/m4sugar/m4sh.m4
--- lib/m4sugar/m4sh.m4 Wed, 12 Sep 2001 17:50:53 +0200 akim
+++ lib/m4sugar/m4sh.m4 Wed, 12 Sep 2001 19:51:26 +0200 akim
@@ -110,7 +110,6 @@ m4_define([_m4_divert(M4SH-INIT)],
fi
# Name of the executable.
-dnl Moved here because the tests below can use AC_MSG_ERROR, which uses $as_me
as_me=`AS_BASENAME($[0])`
_AS_ECHO_N_PREPARE
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- /floppy/ac-patches/93-fyi-debug-scripts.patch,
Akim Demaille <=