automake-patches
[Top][All Lists]
Advanced

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

[PATCH] {master} release-stats: account for generated `instspc-*.test' t


From: Stefano Lattarini
Subject: [PATCH] {master} release-stats: account for generated `instspc-*.test' tests.
Date: Fri, 19 Nov 2010 21:18:33 +0100
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

Hello automakers.

I've realized that my patch on instspc.test split & refactoring has
broken the "release-stats" target, since now there are other generated
tests besides the `*-p.test' tests.

The attached patch fix this glitch in a "quick & dirty" way; a better
fix would probably involve a refactoring of the whole "release-stats"
target, but that can be done later IMHO.

So, OK to apply the attached patch to a temporary branch based off
of commit `v1.11-395-ge118126' "Overhauled and modularized tests in
`instspc.test'.", and merge to master?

Regards,
   Stefano
From 00dbb4fe7d27510718a60d721c932d4f8fb6b2dc Mon Sep 17 00:00:00 2001
From: Stefano Lattarini <address@hidden>
Date: Fri, 19 Nov 2010 21:16:03 +0100
Subject: [PATCH] release-stats: account for generated `instspc-*.test' tests.

* Makefile.am (release-stats): Also account for generated tests
`instspc-*.test'.
---
 ChangeLog   |    6 ++++++
 Makefile.am |    4 +++-
 Makefile.in |    4 +++-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2d0a145..5d2a30f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-19  Stefano Lattarini  <address@hidden>
+
+       release-stats: account for generated `instspc-*.test' tests.
+       * Makefile.am (release-stats): Also account for generated tests
+       `instspc-*.test'.
+
 2010-11-03  Stefano Lattarini  <address@hidden>
 
        Overhauled and modularized tests in `instspc.test'.
diff --git a/Makefile.am b/Makefile.am
index a5df109..5a5b808 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -658,7 +658,9 @@ release-stats: ps
        if test . != '$(srcdir)'; then tests="$$tests $(srcdir)/tests/*.test"; \
        else :; fi && \
        t=`ls -1 $$tests | wc -l` && \
-       tgen=`ls -1 $$tests | grep '.-p\.test' | wc -l` && \
+       tgen1=`ls -1 $$tests | grep '.-p\.test' | wc -l` && \
+       tgen2=`ls -1 $$tests | grep '^tests/instspc-.*\.test' | wc -l` && \
+       tgen=`expr $$tgen1 + $$tgen2` && \
        today=`date +%Y-%m-%d` && \
        echo "add this to the table in doc/automake.texi after verification:" 
&& \
        printf '@item %s @tab %-6s @tab %4d @tab %4d @tab %4d @tab %4d %-4s 
@tab %4d %-4s @tab %3d @tab %d %-4s\n' \
diff --git a/Makefile.in b/Makefile.in
index d9cff86..103e10b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1334,7 +1334,9 @@ release-stats: ps
        if test . != '$(srcdir)'; then tests="$$tests $(srcdir)/tests/*.test"; \
        else :; fi && \
        t=`ls -1 $$tests | wc -l` && \
-       tgen=`ls -1 $$tests | grep '.-p\.test' | wc -l` && \
+       tgen1=`ls -1 $$tests | grep '.-p\.test' | wc -l` && \
+       tgen2=`ls -1 $$tests | grep '^tests/instspc-.*\.test' | wc -l` && \
+       tgen=`expr $$tgen1 + $$tgen2` && \
        today=`date +%Y-%m-%d` && \
        echo "add this to the table in doc/automake.texi after verification:" 
&& \
        printf '@item %s @tab %-6s @tab %4d @tab %4d @tab %4d @tab %4d %-4s 
@tab %4d %-4s @tab %3d @tab %d %-4s\n' \
-- 
1.7.1


reply via email to

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