run gnulib unit tests

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The gnulib unit test suite is getting better all the time, and based on
our increasing reliance on gnulib, I think it is best if we ensure that we
are not violating some of our expectations because of a flaw in a gnulib
module on less-tested platforms.  This adds the gnulib testsuite to our
own on the branch; and I am applying a similar patch to head.

2007-05-28  Eric Blake  <[email protected]>

	Also run gnulib unit tests during make check.
	* m4/gnulib-cache.m4: Augment with 'gnulib-tool
	--tests-base=tests --with-tests'.
	* configure.ac (AC_CONFIG_FILES): Build gnulib testdir.
	* Makefile.am (SUBDIRS): Run gnulib tests before ours.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGWwwu84KuGfSFAYARAjnkAJ9bJrqpq+mut0UnYGIq6/EYmYq92wCfW/cu
1uqm83VneZMJeGkPljP9ItE=
=x080
-----END PGP SIGNATURE-----

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
m4.patch263 (text/plain, 2.7 KB)
Index: Makefile.am
===================================================================
RCS file: /sources/m4/m4/Makefile.am,v
retrieving revision 1.25.2.11
diff -u -p -r1.25.2.11 Makefile.am
--- Makefile.am	25 Aug 2006 14:01:34 -0000	1.25.2.11
+++ Makefile.am	28 May 2007 17:03:58 -0000
@@ -1,6 +1,6 @@
 ## This file is part of GNU M4.
 ##
-## Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006 Free Software
+## Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007 Free Software
 ## Foundation, Inc.
 ##
 ## This program is free software; you can redistribute it and/or modify
@@ -20,7 +20,7 @@
 ##
 ## Written by Gary V. Vaughan <[email protected]>
 
-SUBDIRS = . examples lib src doc checks
+SUBDIRS = . examples lib src doc tests checks
 EXTRA_DIST = bootstrap c-boxes.el gendocs.sh GNUmakefile Makefile.maint \
 	m4/gnulib-cache.m4
 DISTCLEANFILES = stamp-h
Index: configure.ac
===================================================================
RCS file: /sources/m4/m4/configure.ac,v
retrieving revision 1.36.2.39
diff -u -p -r1.36.2.39 configure.ac
--- configure.ac	23 Apr 2007 19:41:10 -0000	1.36.2.39
+++ configure.ac	28 May 2007 17:03:58 -0000
@@ -165,6 +165,7 @@ AC_CONFIG_FILES([Makefile
 		 doc/Makefile
 		 lib/Makefile
 		 src/Makefile
+		 tests/Makefile
 		 checks/Makefile
 		 examples/Makefile
 ])
Index: m4/gnulib-cache.m4
===================================================================
RCS file: /sources/m4/m4/m4/Attic/gnulib-cache.m4,v
retrieving revision 1.1.2.25
diff -u -p -r1.1.2.25 gnulib-cache.m4
--- m4/gnulib-cache.m4	24 May 2007 17:23:43 -0000	1.1.2.25
+++ m4/gnulib-cache.m4	28 May 2007 17:03:58 -0000
@@ -15,7 +15,7 @@
 
 
 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closein config-h error fdl fflush fopen-safer free fseeko gendocs getopt gnupload mkstemp obstack regex stdbool stdint stdlib-safer strtol unlocked-io verror version-etc-fsf xalloc xvasprintf
+#   gnulib-tool --import --dir=. --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --aux-dir=. --with-tests --no-libtool --macro-prefix=M4 avltree-oset binary-io clean-temp cloexec close-stream closein config-h error fdl fflush fopen-safer free fseeko gendocs getopt gnupload mkstemp obstack regex stdbool stdint stdlib-safer strtol unlocked-io verror version-etc-fsf xalloc xvasprintf
 
 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([])
@@ -25,6 +25,7 @@ gl_SOURCE_BASE([lib])
 gl_M4_BASE([m4])
 gl_DOC_BASE([doc])
 gl_TESTS_BASE([tests])
+gl_WITH_TESTS
 gl_LIB([libm4])
 gl_MAKEFILE_NAME([])
 gl_MACRO_PREFIX([M4])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.