GNU bug report logs -
#9242
distcheck fails when having TEST in sub-directory
Previous Next
Reported by: Peter Johansson <trojkan <at> gmail.com>
Date: Thu, 4 Aug 2011 17:55:02 UTC
Severity: normal
Tags: notabug
Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 16 Aug 2011 18:58:37 +0200
with message-id <201108161858.38280.stefano.lattarini <at> gmail.com>
and subject line Re: bug#9242: distcheck fails when having TEST in sub-directory
has caused the GNU bug report #9242,
regarding distcheck fails when having TEST in sub-directory
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
9242: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9242
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hello automakers,
I have a non-recursive Makefile.am but keep the tests in sub-directory named
test. Surprisingly distcheck fails for me with this set up, which to me
seems to be caused by some VPATH issue.
Below is a trimmed down test case that fails for me with
make check-TESTS
make[2]: *** No rule to make target `test/foo.test', needed by
`check-TESTS'. Stop.
make[1]: *** [check-am] Error 2
make: *** [distcheck] Error 1
cat > configure.ac <<EOF
AC_INIT([foo], [1])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
cat > Makefile.am <<EOF
TEST_EXTENSIONS = .test
TESTS = test/foo.test
EOF
mkdir -p test
cat > test/foo.test <<EOF
echo hello world
exit 0
EOF
chmod 755 test/foo.test
autoreconf -ivf
./configure
make all
make check
make distcheck
Is this a bug or am I doing something wrong?
I'm using Automake 1.11.1
Thanks,
Peter
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
On Friday 05 August 2011, Stefano Lattarini wrote:
> On Thursday 04 August 2011, Peter Johansson wrote:
>
> > cat > Makefile.am <<EOF
> > TEST_EXTENSIONS = .test
> > TESTS = test/foo.test
> > EOF
> >
> You've forgotten to add $(TESTS) to $(EXTRA_DIST) here:
>
> EXTRA_DIST = $(TESTS)
>
> If you add the above line to your Makefile.am (both the reduced one
> and the original one), does you problem disappear? If yes, I'll
> close this bug report.
>
No further reply from Peter, so I assume my diagnosis was correct and
the issue has been solved. Peter, feel free to re-open the report if
this is not the case,
Regards,
Stefano
This bug report was last modified 13 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.