[augeas-devel] [PATCH] enable automake-1.11 features: colorized and parallel tests, etc.

Jim Meyering jim at meyering.net
Sat Jun 27 07:11:18 UTC 2009


David Lutterkort wrote:
> On Mon, 2009-06-15 at 16:31 +0200, Jim Meyering wrote:
>> Now that automake-1.11 will soon be hitting F9, F10, F11,
>> you may want to use some of its features.
>
> Ok .. after much too much delay, I've now played with this a little, and
> like it a lot. Patches (with some very minor changes) committed.
>
>> diff --git a/tests/lens-test-1 b/tests/lens-test-1
>> new file mode 100755
>> index 0000000..0accbf5
>> --- /dev/null
>> +++ b/tests/lens-test-1
>> @@ -0,0 +1,12 @@
>> +#! /bin/sh
>> +# Run one lens test.
>> +# Derive names of inputs from the name of this script.
>> +
>> +TOPDIR=$(cd $(dirname $0)/.. && pwd)
>> +[ -n "$abs_top_srcdir" ] || top_srcdir=$TOPDIR
>
> That should be abs_top_srcdir.

Good catch.

> I also added a tests/.gitignore to suppress all those lens-*.sh.

Yeah, so did I.
Should have posted it.
In case you care, you can eliminate that one-line tests/.gitignore file
by adding the tests/-prefixed line to the top-level .gitignore file.

>From d8a7a5b65a7f3779cace2cb48da92d3ec2ad094d Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 16 Jun 2009 08:31:12 +0200
Subject: [PATCH] build: ignore generated test files

* tests/.gitignore: Remove file.
* .gitignore: ignore tests/lens-*.sh
---
 .gitignore       |    1 +
 tests/.gitignore |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)
 delete mode 100644 tests/.gitignore

diff --git a/.gitignore b/.gitignore
index c8d65db..d881658 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,6 +34,7 @@ src/lexer.[ch]
 src/augtool
 src/augparse
 tests/fatest
+tests/lens-*.sh
 tests/test-xpath
 tests/test-load
 *.aux
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644
index c6c59c8..0000000
--- a/tests/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-lens-*.sh
--
1.6.3.3.420.gd4b46




More information about the augeas-devel mailing list