automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FYI] {testsuite-work} tests: minor optimizations/simplifications in


From: Stefano Lattarini
Subject: Re: [FYI] {testsuite-work} tests: minor optimizations/simplifications in some aclocal tests
Date: Sun, 11 Sep 2011 00:31:43 +0200
User-agent: KMail/1.13.7 (Linux/2.6.30-2-686; KDE/4.6.5; i686; ; )

On Sunday 11 September 2011, Stefano Lattarini wrote:
> * acloca11.test: Instead of running ./configure and then grepping
> the file it has produced, directly grep configure.  Add trailing
> `:' command.
> * acloca12.test: Likewise.
> * acloca10.test: Likewise.  Also, remove the autom4te caches
> by hand, instead of sleeping to ensure they get outdated and
> ignored.
> * aclocal9.test: Likewise.
> * acloca18.test: Likewise.  Also, do not remove file `foo',
> which is not being created anymore.
> * acloca20.test: The test makes sense only if the system support
> real symlinks, so skip it if this is not the case.  This allows
> for various simplifications.
>
And consider this squashed in (for consistency only, not strictly
required):

 diff --git a/tests/acloca18.test b/tests/acloca18.test
 index 6c4798f..da9cbf5 100755
 --- a/tests/acloca18.test
 +++ b/tests/acloca18.test
 @@ -106,8 +106,8 @@ ACLOCAL="$ACLOCAL --system-acdir acdir"
  rm -rf autom4te*.cache
  cat >acdir/m1.m4 <<EOF
  #serial 456
 -AC_DEFUN([AM_MACRO1], [echo macro1d >> foo])
 -AC_DEFUN([AM_MACRO2], [echo macro2d >> foo])
 +AC_DEFUN([AM_MACRO1], [:macro1d:])
 +AC_DEFUN([AM_MACRO2], [:macro2d:])
  EOF
  $ACLOCAL -I 4 -I 1 --diff=diff >stdout 2>stderr || {
    cat stderr >&2

Regards,
  Stefano


reply via email to

[Prev in Thread] Current Thread [Next in Thread]