[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 28/26] [ng] coverage: texinfo silent rules with a s
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 28/26] [ng] coverage: texinfo silent rules with a subdir texinfo file |
Date: |
Sun, 17 Jun 2012 10:49:11 +0200 |
* t/silent-info.sh: Enhance. Fix a minor bug while we are it (it
could potentially have caused false negatives).
Signed-off-by: Stefano Lattarini <address@hidden>
---
t/silent-info.sh | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/t/silent-info.sh b/t/silent-info.sh
index 244b18d..2bcbe70 100755
--- a/t/silent-info.sh
+++ b/t/silent-info.sh
@@ -22,15 +22,21 @@ required='makeinfo-html tex texi2dvi-o dvips'
echo AC_OUTPUT >> configure.ac
cat > Makefile.am <<'EOF'
-info_TEXINFOS = foo.texi
+info_TEXINFOS = foo.texi sub/zardoz.texi
EOF
cat > foo.texi <<'EOF'
\input texinfo
address@hidden %**start of header
@setfilename foo.info
@settitle foo manual
address@hidden %**end of header
address@hidden
+EOF
+
+mkdir sub
+cat > sub/zardoz.texi <<'EOF'
+\input texinfo
address@hidden zardoz.info
address@hidden zardoz manual
@bye
EOF
@@ -46,15 +52,22 @@ $MAKE V=0 dvi html info ps pdf >stdout 2>stderr || st=$?
cat stdout
cat stderr >&2
test $st -eq 0
-grep '^ DVIPS foo\.ps$' stdout
-grep '^ MAKEINFO foo\.html$' stdout
-grep '^ MAKEINFO foo\.info$' stdout
-grep '^ TEXI2DVI foo\.dvi$' stdout
-grep '^ TEXI2PDF foo\.pdf$' stdout
+grep '^ DVIPS foo\.ps$' stdout
+grep '^ MAKEINFO foo\.html$' stdout
+grep '^ MAKEINFO foo\.info$' stdout
+grep '^ TEXI2DVI foo\.dvi$' stdout
+grep '^ TEXI2PDF foo\.pdf$' stdout
+grep '^ DVIPS sub/zardoz.ps$' stdout
+grep '^ MAKEINFO sub/zardoz.html$' stdout
+grep '^ MAKEINFO sub/zardoz.info$' stdout
+grep '^ TEXI2DVI sub/zardoz.dvi$' stdout
+grep '^ TEXI2PDF sub/zardoz.pdf$' stdout
# No make recipe is displayed before being executed.
-$EGREP 'texi2(dvi|pdf)|dvips|makeinfo|(rm|mv) ' stdout stderr && Exit 1
+$EGREP 'texi2(dvi|pdf)|dvips|makeinfo|(rm|mv) ' \
+ stdout stderr && Exit 1
# No verbose output from TeX nor dvips.
-$EGREP 'foo\.log|3\.14|Copyright|This is|[Oo]utput ' output && Exit 1
+$EGREP '(zardoz|foo)\.log|3\.14|Copyright|This is|[Oo]utput ' \
+ stdout stderr && Exit 1
# Verbose mode output.
$MAKE clean || Exit 1
@@ -63,7 +76,9 @@ cat output
$EGREP '(DVIPS|MAKEINFO|TEXI2(PDF|DVI)) ' output && Exit 1
# Verbose output from TeX.
grep '[Oo]utput .*foo\.pdf' output
+grep '[Oo]utput .*zardoz\.pdf' output
$FGREP 'foo.log' output
+$FGREP 'zardoz.log' output
# Verbose output from dvips.
$FGREP ' dvips' output
--
1.7.9.5