[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47-fyi-adjust-rel-path-tests.patch
From: |
Akim Demaille |
Subject: |
47-fyi-adjust-rel-path-tests.patch |
Date: |
Mon, 26 Nov 2001 11:49:18 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
Test groups are now run two directories deeper.
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Replace srcdir,
top_srcdir and top_builddir with at_srcdir, at_top_srcdir and
at_top_builddir.
* lib/autotest/general.m4 (AT_INIT): Compute srcdir,
top_srcdir, builddir and top_builddir.
Use `at_*dir' relatively to the directory containing the
suite, use `*dir' when relatively to the current group dir.
Index: lib/autoconf/autotest.m4
--- lib/autoconf/autotest.m4 Sat, 24 Nov 2001 18:33:18 +0100 akim
+++ lib/autoconf/autotest.m4 Sat, 24 Nov 2001 18:33:28 +0100 akim
@@ -85,13 +85,14 @@ AC_DEFUN([AC_CONFIG_TESTDIR],
@%:@ Generated by $[0].
@%:@ Copyright 2000, 2001 Free Software Foundation, Inc.
+# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
at_testdir='$1'
buildpath='$ac_buildpath'
-srcdir='$ac_srcdir'
+at_srcdir='$ac_srcdir'
srcpath='$ac_srcpath'
-top_srcdir='$ac_top_srcdir'
+at_top_srcdir='$ac_top_srcdir'
top_srcpath='$ac_top_srcpath'
-top_builddir='$ac_top_builddir'
+at_top_builddir='$ac_top_builddir'
top_buildpath='$ac_top_buildpath'
AUTOTEST_PATH='m4_default([$2], [$1])'
Index: lib/autotest/general.m4
--- lib/autotest/general.m4 Sat, 24 Nov 2001 18:33:18 +0100 akim
+++ lib/autotest/general.m4 Sat, 24 Nov 2001 18:33:28 +0100 akim
@@ -110,6 +110,17 @@ m4_define([AT_banner_ordinal], 0)
. ./$at_file || AS_ERROR([invalid content: $at_file])
done
+# atconfig delivers paths relative to the directory the test suite is
+# in, but the groups themselves are run in testsuite-dir/group-dir.
+if test -n "$at_top_srcdir"; then
+ builddir=../..
+ for at_dir in srcdir top_srcdir top_builddir
+ do
+ at_val=AS_VAR_GET(at_$at_dir)
+ AS_VAR_SET($at_dir, $at_val/../..)
+ done
+fi
+
AUTOTEST_PATH=`echo $AUTOTEST_PATH | tr ':' $PATH_SEPARATOR`
# Not all shells have the 'times' builtin; the subshell is needed to make
@@ -349,13 +360,13 @@ Usage: $[0] [[OPTION]... [VARIABLE=VALUE
at_path=$at_path$PATH_SEPARATOR$as_dir
;;
* )
- if test -z "$top_builddir"; then
+ if test -z "$at_top_builddir"; then
# Stand-alone test suite.
at_path=$at_path$PATH_SEPARATOR$as_dir
else
# Embedded test suite.
- at_path=$at_path$PATH_SEPARATOR$top_builddir/$as_dir
- at_path=$at_path$PATH_SEPARATOR$top_srcdir/$as_dir
+ at_path=$at_path$PATH_SEPARATOR$at_top_builddir/$as_dir
+ at_path=$at_path$PATH_SEPARATOR$at_top_srcdir/$as_dir
fi
;;
esac])
@@ -406,10 +417,10 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
# exact version. Use the relative dir: if the top dir is a symlink,
# find will not follow it (and options to follow the links are not
# portable), which would result in no output here.
- if test -n "$top_srcdir"; then
+ if test -n "$at_top_srcdir"; then
AS_BOX([ChangeLogs.])
echo
- for at_file in `find "$top_srcdir" -name ChangeLog -print`
+ for at_file in `find "$at_top_srcdir" -name ChangeLog -print`
do
echo "$as_me: $at_file:"
sed 's/^/| /;10q' $at_file
@@ -644,10 +655,10 @@ m4_define([AS_MESSAGE_LOG_FD], [6])
{
echo
- if test -n "$top_srcdir"; then
+ if test -n "$at_top_srcdir"; then
AS_BOX([Configuration logs.])
echo
- for at_file in `find "$top_srcdir" -name config.log -print`
+ for at_file in `find "$at_top_srcdir" -name config.log -print`
do
echo "$as_me: $at_file:"
sed 's/^/| /' $at_file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 47-fyi-adjust-rel-path-tests.patch,
Akim Demaille <=