[PATCH] Internationalization tests: prefer `make distdir' over `make dist'.

2010-09-06 Thread Stefano Lattarini
I'd like to add also the following optimization patch. Regards, Stefano -*-*-*- Internationalization tests: prefer `make distdir' over `make dist'. Instead of running `make dist', then uncompressing the created tarball, and then grepping the uncompressed tar archive, we can simply run `make

[PATCH] Internationalization tests: do not ignore failures.

2010-09-06 Thread Stefano Lattarini
This patch fixes potential false negatives in the new tests. Regards, Stefano -*-*-*- Internationalization tests: do not ignore failures. Some tests used the idiom: test $builddir = '.' || test ! -f posub/foo-bar.pot to check that a file is build in the source directory, not in the build

[PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Stefano Lattarini
This is mostly a cosmetic/consistency patch. I hope you'll find it worth applying nonetheless. Regards, Stefano -*-*- Internationalization tests: prefer `test ! -r' over `test ! -f' We now use `test ! -r' rather than `test ! -f' to check that a file does not exists (`test ! -e' would be

Re: [PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Ralf Corsepius
On 09/06/2010 05:18 PM, Stefano Lattarini wrote: This is mostly a cosmetic/consistency patch. I hope you'll find it worth applying nonetheless. Regards, Stefano -*-*- Internationalization tests: prefer `test ! -r' over `test ! -f' test -r is non-portable. Very old shells do not support

Re: [PATCH 1/4] {branch tests-init} Tests defs: $srcdir is unconditionally substituted.

2010-09-06 Thread Ralf Wildenhues
Hi Stefano, * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 11:28:27AM CEST: On Monday 06 September 2010, Ralf Wildenhues wrote: Well, in v1.11-139-g6fee87c and before that in v1.11-138-gc6bbc45 the above line was move resp. introduced. Was that a buglet in the latter patch? No,

shell errexit and exit status (was: [PATCH] Internationalization tests: do not ignore failures.)

2010-09-06 Thread Ralf Wildenhues
Hello Stefano, * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 05:06:23PM CEST: This patch fixes potential false negatives in the new tests. Internationalization tests: do not ignore failures. Some tests used the idiom: test $builddir = '.' || test ! -f posub/foo-bar.pot to check that

Re: automake po / pot file integration: first tests available

2010-09-06 Thread Ralf Wildenhues
Hello Stefano, * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 03:07:30PM CEST: I noticed some problems (both serious and cosmetic) in your patch. Here is a summary of the in decreasing order of relevance: 1. You sometimes failed to use `$MAKE' instead of `make' and `Exit' instead of

Re: [PATCH] Internationalization tests: prefer `make distdir' over `make dist'.

2010-09-06 Thread Ralf Wildenhues
* Stefano Lattarini wrote on Mon, Sep 06, 2010 at 04:56:50PM CEST: Internationalization tests: prefer `make distdir' over `make dist'. Instead of running `make dist', then uncompressing the created tarball, and then grepping the uncompressed tar archive, we can simply run `make distdit' and

Re: [PATCH 1/4] {branch tests-init} Tests defs: $srcdir is unconditionally substituted.

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Ralf Wildenhues wrote: Unfortunately, there is no bug fixed by this patch. I can only offer the above argumentation (plus consistency of $testsrcdir and $top_testsrcdir). Your verbose explanation above and this seem to contradict each other. ;-) I'll

Re: [PATCH 1/4] {branch tests-init} Tests defs: $srcdir is unconditionally substituted.

2010-09-06 Thread Ralf Wildenhues
* Stefano Lattarini wrote on Mon, Sep 06, 2010 at 08:59:20PM CEST: On Monday 06 September 2010, Ralf Wildenhues wrote: Unfortunately, there is no bug fixed by this patch. I can only offer the above argumentation (plus consistency of $testsrcdir and $top_testsrcdir). Your verbose

Re: shell errexit and exit status

2010-09-06 Thread Ralf Wildenhues
* Stefano Lattarini wrote on Mon, Sep 06, 2010 at 09:22:51PM CEST: On Monday 06 September 2010, Ralf Wildenhues wrote: * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 05:06:23PM CEST: That also means, that we should probably be more cautious with removing `|| Exit 1' instances from tests.

Re: shell errexit and exit status (was: [PATCH] Internationalization tests: do not ignore failures.)

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Ralf Wildenhues wrote: Hello Stefano, * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 05:06:23PM CEST: This patch fixes potential false negatives in the new tests. Internationalization tests: do not ignore failures. Some tests used the idiom: test

Re: shell errexit and exit status

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Ralf Wildenhues wrote: * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 09:22:51PM CEST: What about my pending patch Testsuite: use $SHELL to run tests which are shell scripts.? I'll reply in that thread. That should ensure that the tests are run with a

Re: automake po / pot file integration: first tests available

2010-09-06 Thread Bruno Haible
Hi Stefano, And the attached patch should be squashed in previous patch n.3. This is also fine with me. Thanks! Bruno

[RFC] Make build and install dirs used by distcheck configurable. (was: Re: absolute build directory with spaces)

2010-09-06 Thread Stefano Lattarini
On Sunday 05 September 2010, Ralf Wildenhues wrote: Hello, * Jim Meyering wrote on Sat, Sep 04, 2010 at 07:28:58PM CEST: Stefano Lattarini wrote: What about instead making the names of the temporaries source/build/install directories used by make distcheck configurable? It turns out

Re: [PATCH] Internationalization tests: prefer `make distdir' over `make dist'.

2010-09-06 Thread Bruno Haible
Hi Stefano, simply run `make distdit' and anylize. This is both faster and s/anylize/analyze/ This patch is a nice simplification. And maybe it also increases portability (I don't know which file names a tarball will contain when you create it on a file system which is case-insignificant with

Re: [PATCH] Internationalization tests: prefer `make distdir' over `make dist'.

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Ralf Wildenhues wrote: * Stefano Lattarini wrote on Mon, Sep 06, 2010 at 04:56:50PM CEST: Internationalization tests: prefer `make distdir' over `make dist'. Instead of running `make dist', then uncompressing the created tarball, and then grepping the

Re: [PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Bruno Haible
Hi Stefano, Internationalization tests: prefer `test ! -r' over `test ! -f' Why? Why is it more important to check that an expected file has read permissions, than to check that it is a regular file? This is not an objection. I just find it odd to use 'test -f' for the positive test and 'test

Re: [PATCH] Internationalization tests: do not ignore failures.

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Bruno Haible wrote: Hi Stefano, ... since the failing `test' is in a `||' compound command. Fix this problem by explicitly calling `Exit 1' where needed. Yes, please apply. I did not know until today that and || commands behave specially under 'set -e'.

Re: [PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Bruno Haible wrote: Hi Stefano, Internationalization tests: prefer `test ! -r' over `test ! -f' Why? Why is it more important to check that an expected file has read permissions, than to check that it is a regular file? Just in case the file is erroneously

Re: [PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Bruno Haible
Hi Stefano, Internationalization tests: prefer `test ! -r' over `test ! -f' Why? ... Just in case the file is erroneously created as (say) a directory or a symlink, a situation `test -f' would not catch. I see, thanks. This is indeed more probable than that an unreadable file is

Re: automake po / pot file integration: first tests available

2010-09-06 Thread Stefano Lattarini
On Monday 06 September 2010, Bruno Haible wrote: Hello Stefano, Hi Bruno. Thanks for your all your quick reviews. Ralf said: Give Bruno some time for comments before applying to the pot-primary branch, please. Yes, please. Give me always between 2 days (48 hours) and 7 days to react. I

Re: automake po / pot file integration: first tests available

2010-09-06 Thread Stefano Lattarini
Oh, and I forgot to ask: OK to push with this last amending applied? Regards, Stefano

Re: [PATCH] Internationalization tests: prefer `test ! -r' over `test ! -f'

2010-09-06 Thread Ralf Corsepius
On 09/06/2010 07:51 PM, Ralf Wildenhues wrote: Hello Ralf, * Ralf Corsepius wrote on Mon, Sep 06, 2010 at 07:49:04PM CEST: On 09/06/2010 05:18 PM, Stefano Lattarini wrote: This is mostly a cosmetic/consistency patch. I hope you'll find it worth applying nonetheless. Internationalization