diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-10-27 15:38:46 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-10-27 16:01:19 +0200 |
commit | 44d202536a5fd0ac670eef7f43326093c8c9bc5b (patch) | |
tree | 0cea30165b6523517456fc2b8861a29ee44cdc0e /t/built-sources-subdir.sh | |
parent | 7a3e5c7c58d5f3dab27776b5b07e3d4e1b2e5fdd (diff) | |
download | automake-44d202536a5fd0ac670eef7f43326093c8c9bc5b.tar.gz |
tests: move coverage about BUILT_SOURCES
Basically a backport of some tests from Automake-NG.
* t/built-sources-check.sh: Sync it with the version in the ng/master
branch. Accordingly, move part of the checks out ...
* t/built-sources-install.sh: ... into this new test, synced from
ng/master as well.
* t/built-sources-subdir.sh: Minor tweaks and enhancements to sync it
with the version in ng/master.
* t/built-sources-cond.sh: New test, synced from ng/master.
* t/built-sources.sh: Likewise, with minor edits to avoid a spurious
failure.
* t/built-sources-fork-bomb.sh: Likewise.
* t/list-of-tests.mk: Update.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/built-sources-subdir.sh')
-rwxr-xr-x | t/built-sources-subdir.sh | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/t/built-sources-subdir.sh b/t/built-sources-subdir.sh index 84f65a680..cc162bb99 100755 --- a/t/built-sources-subdir.sh +++ b/t/built-sources-subdir.sh @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Make sure when using SUBDIR that all BUILT_SOURCES are built. +# Make sure when using SUBDIRS that all BUILT_SOURCES are built. # A bug occurred where subdirs do not have all-recursive or # all-recursive-am which depended on BUILT_SOURCES. @@ -31,14 +31,6 @@ AM_PROG_AR AC_OUTPUT END -# Files required because we are using '--gnu'. -: > INSTALL -: > NEWS -: > README -: > COPYING -: > AUTHORS -: > ChangeLog - cat > Makefile.am << 'END' SUBDIRS = lib END @@ -47,25 +39,24 @@ cat > lib/Makefile.am << 'END' pkgdata_DATA = noinst_LIBRARIES = libfoo.a libfoo_a_SOURCES = foo.c -BUILT_SOURCES=foo.h +BUILT_SOURCES = foo.h foo.h: echo \#define FOO_DEFINE 1 >$@ +CLEANFILES = $(BUILT_SOURCES) END cat > lib/foo.c << 'END' #include <foo.h> -int foo () { return !FOO_DEFINE;} +int foo (void) { return !FOO_DEFINE; } END $ACLOCAL $AUTOCONF -$AUTOMAKE --include-deps --copy --force-missing --add-missing --gnu +$AUTOMAKE --copy --add-missing ./configure - -# Remove the comment to get a successful test. -# $MAKE -C lib foo.h $MAKE +$MAKE distcheck : |