changeset 16263:f26fd2095252

doc: Mention --with-tests option. * gnulib-tool (func_usage): Suggest --with-tests for --test etc. * doc/gnulib.texi (Extra tests modules): Mention the need to pass --with-tests. Reported by Reuben Thomas.
author Bruno Haible <bruno@clisp.org>
date Tue, 10 Jan 2012 20:53:57 +0100
parents 6a0daa712c93
children 12711a0db059
files ChangeLog doc/gnulib.texi gnulib-tool
diffstat 3 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-01-10  Bruno Haible  <bruno@clisp.org>
+
+	doc: Mention --with-tests option.
+	* gnulib-tool (func_usage): Suggest --with-tests for --test etc.
+	* doc/gnulib.texi (Extra tests modules): Mention the need to pass
+	--with-tests.
+	Reported by Reuben Thomas.
+
 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
 
 	users.txt: order package names lexicographically.
--- a/doc/gnulib.texi
+++ b/doc/gnulib.texi
@@ -825,17 +825,17 @@
 release that is made for the general public.
 @end table
 
-@code{gnulib-tool --import} will not include tests marked with these
-attributes by default.  When @code{gnulib-tool} is invoked with one
+@code{gnulib-tool --import --with-tests} will not include tests marked with
+these attributes by default.  When @code{gnulib-tool} is invoked with one
 of the options @code{--with-c++-tests}, @code{--with-longrunning-tests},
 @code{--with-privileged-tests}, @code{--with-unportable-tests}, it
 will include tests despite the corresponding special status attribute.
 When @code{gnulib-tool} receives the option @code{--with-all-tests},
 it will include all tests regardless of their status attributes.
 
-@code{gnulib-tool --create-testdir} and
-@code{gnulib-tool --create-megatestdir} by default include all tests of
-modules specified on the command line, regardless of their status
+@code{gnulib-tool --create-testdir --with-tests} and
+@code{gnulib-tool --create-megatestdir --with-tests} by default include all
+tests of modules specified on the command line, regardless of their status
 attributes.  Tests of modules occurring as dependencies are not included
 by default if they have one of these status attributes.  The options
 @code{--with-c++-tests}, @code{--with-longrunning-tests},
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -164,11 +164,15 @@
       --update              update the current package, restore files omitted
                             from version control
       --create-testdir      create a scratch package with the given modules
+                            (pass --with-tests to include the unit tests)
       --create-megatestdir  create a mega scratch package with the given modules
                             one by one and all together
+                            (pass --with-tests to include the unit tests)
       --test                test the combination of the given modules
+                            (pass --with-tests to include the unit tests)
                             (recommended to use CC=\"gcc -Wall\" here)
       --megatest            test the given modules one by one and all together
+                            (pass --with-tests to include the unit tests)
                             (recommended to use CC=\"gcc -Wall\" here)
       --extract-description        extract the description
       --extract-comment            extract the comment