[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
58-fyi-cli-to-debug-sh.patch
From: |
Akim Demaille |
Subject: |
58-fyi-cli-to-debug-sh.patch |
Date: |
Mon, 27 Aug 2001 08:55:25 +0200 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autotest/general.m4 (AT_INIT) <at_cmd_line>: Remove.
<at_cmd_line>: New.
Pass it to debug-*.sh scripts.
<AUTOTEST_PATH>: May contain absolute dir names.
Index: lib/autotest/general.m4
--- lib/autotest/general.m4 Sat, 25 Aug 2001 09:58:15 +0200 akim
+++ lib/autotest/general.m4 Sat, 25 Aug 2001 11:14:54 +0200 akim
@@ -93,7 +93,7 @@ m4_define([AT_data_files], [stdout expou
SHELL=${CONFIG_SHELL-/bin/sh}
# How were we run?
-at_cmd_line="$[0] address@hidden"
+at_cli_args=${1+"address@hidden"}
. ./atconfig
@@ -228,16 +228,26 @@ Tests:
at_path=
# Build first.
for at_dir in $AUTOTEST_PATH; do
- at_dir=`(cd "$top_builddir/$at_dir" && pwd) 2>/dev/null`
- if test -n "$at_dir"; then
+ case $at_dir in
+ [[\\/]]* | ?:[[\\/]]* )
+ at_dir=`(cd "$at_dir" && pwd) 2>/dev/null` ;;
+ * )
+ at_dir=`(cd "$top_builddir/$at_dir" && pwd) 2>/dev/null` ;;
+ esac
+ if test -d "$at_dir"; then
at_path="$at_path$at_sep$at_dir"
at_sep=$PATH_SEPARATOR
fi
done
# Then source.
for at_dir in $AUTOTEST_PATH; do
- at_dir=`(cd "$top_srcdir/$at_dir" && pwd) 2>/dev/null`
- if test -n "$at_dir"; then
+ case $at_dir in
+ [[\\/]]* | ?:[[\\/]]* )
+ at_dir=`(cd "$at_dir" && pwd) 2>/dev/null` ;;
+ * )
+ at_dir=`(cd "$top_srcdir/$at_dir" && pwd) 2>/dev/null` ;;
+ esac
+ if test -d "$at_dir"; then
at_path="$at_path$at_sep$at_dir"
at_sep=$PATH_SEPARATOR
fi
@@ -245,7 +255,7 @@ Tests:
# And finally PATH.
for at_dir in $PATH; do
at_dir=`(cd "$at_dir" && pwd) 2>/dev/null`
- if test -n "$at_dir"; then
+ if test -d "$at_dir"; then
at_path="$at_path$at_sep$at_dir"
at_sep=$PATH_SEPARATOR
fi
@@ -262,7 +272,7 @@ Tests:
echo
echo "$as_me: command line was:"
- echo " $ $at_cmd_line"
+ echo " $ $[0] $at_cli_args"
echo
# Try to find a few ChangeLogs in case it might help determining the
@@ -398,7 +408,8 @@ Tests:
for at_group in $at_fail_list; do
echo $at_n " $at_group$at_c"
( echo "#! /bin/sh"
- echo 'exec ${CONFIG_SHELL-'"$SHELL"'} '"$[0]"' -v -d '"$at_group"'
${1+"address@hidden"}'
+ echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$[0]" \
+ '-v -d' "$at_cli_args" "$at_group" '${1+"address@hidden"}'
echo 'exit 1'
) >debug-$at_group.sh
chmod +x debug-$at_group.sh
- 58-fyi-cli-to-debug-sh.patch,
Akim Demaille <=