GNOME Bugzilla – Bug 577774
Test suite run even when built with --disable-gtk-doc
Last modified: 2009-09-28 15:08:22 UTC
Using gtk-doc-1.11 ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 [snip] make[1]: quittant le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/po » Making check in docs make[1]: entrant dans le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs » Making check in reference make[2]: entrant dans le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs/reference » make check-TESTS make[3]: entrant dans le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs/reference » Running suite(s): gtk-doc-totem-pl-parser Cannot open totem-pl-parser-undocumented.txt: Aucun fichier ou dossier de ce type FAIL: /usr/bin/gtkdoc-check ================================================================================================== 1 of 1 tests failed Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=totem-pl-parser&component=General ================================================================================================== make[3]: *** [check-TESTS] Erreur 1 make[3]: quittant le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs/reference » make[2]: *** [check-am] Erreur 2 make[2]: quittant le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs/reference » make[1]: *** [check-recursive] Erreur 1 make[1]: quittant le répertoire « /var/tmp/portage/dev-libs/totem-pl-parser-2.26.1/work/totem-pl-parser-2.26.1/docs » make: *** [check-recursive] Erreur 1 I pass post full build.log if necessary.
Interestingly, the gtk-doc checks pass for me, but the parser tests fail. Could you add the full build.log as an attachment please?
Just got this with totem as well. It looks like both package don't include $(PACKAGE_NAME)-undocument.txt which means that passing --disable-gtk-doc when building the package will lead to failures when testing. I verified this by rm *.txt in docs/references, svn up to check I didn't destroy anything that was versionned and repeating this operation when changing configure options.
Created attachment 132099 [details] build.log.gz full build.log. I guess this is more of a gtk-doc bug since it should include this file in the tarball for people installing pre-generated documentation.
This is a gtk-doc bug, very similar to bug #546836 and bug #546138, but the problem is probably more that gtk-doc is running its test suite even when the package is built with --disable-gtk-doc.
Its not really a gtk-doc bug. In your Makefile.am you would need to make enabling the test conditional. I have improved the makefile template accordingly. # Comment this out if you want your docs-status tested during 'make check' if ENABLE_GTK_DOC #TESTS_ENVIRONMENT = cd $(srcsrc) #TESTS = $(GTKDOC_CHECK) endif
Created attachment 141210 [details] [review] Patch based on SVN version of examples/Makefile.am
That snippet in comment #5 breaks distcheck when those two lines are uncommented, at least for me. Here's one that does work: if ENABLE_GTK_DOC TESTS_ENVIRONMENT = cd $(srcdir) && TESTS = $(GTKDOC_CHECK) endif I've attached a patch based on the SVN version of examples/Makefile.am.
commit d8ccc4d71805d5c10927615e83e94c3b380cc780 Author: Philip Chimento <philip.chimento@gmail.com> Date: Mon Sep 28 18:04:39 2009 +0300 examples: fix makefile for running tests. Fixes #577774 Add a '&&' to test-env variable.