tests: fix spurious failure in test on TEXINFO_TEX overriding
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Dec 2014 14:49:36 +0000 (15:49 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 27 Dec 2014 15:19:37 +0000 (16:19 +0100)
* t/txinfo-override-texinfo-tex.sh: Here.  The issue was pre-existing, but
has been only recently exposed by the fix for automake bug#18286 "distcheck
fails to detect missing files" (see commit v1.14.1-4-g01a7a4a) and by the
BSD make semantics.  To convince yourself this change actually makes sense
semantically, see https://sourceware.org/ml/binutils/2012-06/msg00004.html

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/txinfo-override-texinfo-tex.sh

index 72bf834e2d5872b0beeee830a32aa8c34c8bdf79..c03dd394715e2772f9a07f5af20a0d82e919b074 100644 (file)
@@ -30,12 +30,13 @@ AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
-TEXINFO_TEX = $(srcdir)/tex/texinfo.tex
+TEXINFO_TEX = ../tex/texinfo.tex
 info_TEXINFOS = main.texi
 sure_it_exists:
-       test -f $(TEXINFO_TEX)
+       test -f $(srcdir)/$(TEXINFO_TEX)
 sure_it_is_not_distributed: distdir
        test ! -f $(distdir)/tex/texinfo.tex
+check-local: sure_it_exists
 END
 
 cat > main.texi << 'END'
@@ -61,7 +62,6 @@ test -f tex/texinfo.tex
 
 ./configure
 
-$MAKE sure_it_exists
 $MAKE distcheck
 $MAKE sure_it_is_not_distributed