help-debbugs
[Top][All Lists]
Advanced

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

Using 'TESTS = *.test' with automake 1.13 leads to "fatal: making test-s


From: Xavier Roche
Subject: Using 'TESTS = *.test' with automake 1.13 leads to "fatal: making test-suite.log: failed to create ..." errors
Date: Sat, 08 Jun 2013 13:29:53 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Hi folks!

While trying automake 1.13, users stumbled upon regression from previous
releases, when using TESTS = *.test in automake test suite.

The following self-contained example demonstrates the issue:

############################## CUT ##############################
cat << EOF > configure.ac
AC_INIT([foo], [1.0])
AC_CONFIG_SRCDIR(dummy.c)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_PREREQ(2.50)
AM_PROG_LIBTOOL
AC_OUTPUT([Makefile
tests/Makefile
])
EOF

cat << EOF > Makefile.am
SUBDIRS = tests
ACLOCAL_AMFLAGS = -I m4
EOF

mkdir tests

cat << EOF > tests/Makefile.am
EXTRA_DIST = $(TESTS)
TEST_EXTENSIONS = .test
TESTS = *.test
EOF

cat << EOF > tests/foo.test
#!/bin/bash
#
echo "foo"
EOF
chmod a+rx tests/foo.test

touch ChangeLog AUTHORS README NEWS dummy.c

libtoolize --copy --force \
&& aclocal-1.13 -I m4 \
&& autoheader \
&& autoconf \
&& automake-1.13 --add-missing --copy --force-missing

./configure && make check
############################## CUT ##############################

Leads to:
fatal: making test-suite.log: failed to create Makefile.trs
fatal: making test-suite.log: failed to create Makefile.log
fatal: making test-suite.log: failed to create Makefile.am.trs
fatal: making test-suite.log: failed to create Makefile.am.log
fatal: making test-suite.log: failed to create Makefile.in.trs
fatal: making test-suite.log: failed to create Makefile.in.log
fatal: making test-suite.log: failed to create foo.test.trs
fatal: making test-suite.log: failed to create foo.test.log
make[3]: *** [test-suite.log] Error 1

A quick fix is to do:

sed -i -e 's/TESTS = .*/TESTS = foo.test/' tests/Makefile.am \
&& automake-1.13 --add-missing --copy --force-missing

Are wildcards supported within TESTS definition ? Or is there something
really obvious I missed ? :p

Thanks!



reply via email to

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