test.xml: Improve documentation on running a subset of tests.
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Apr 2015 19:59:32 +0000 (20:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 10 Apr 2015 19:59:32 +0000 (20:59 +0100)
* doc/xml/manual/test.xml: Improve documentation on running a subset
of tests.
* doc/html/manual/test.html: Regenerate.

From-SVN: r221985

libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/test.html
libstdc++-v3/doc/xml/manual/test.xml

index 6aa11f62981b7e3c801fd67e2ecb69da4299c79a..e66a7978c98ed04e8a2ddd7775b604b159dced07 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-10  Jonathan Wakely  <jwakely@redhat.com>
+
+       * doc/xml/manual/test.xml: Improve documentation on running a subset
+       of tests.
+       * doc/html/manual/test.html: Regenerate.
+
 2015-04-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        * config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update
index 78ffb226994b9bf231e22293bf0d5ab61bb87de6..893cf7242e3bb0e51ef6e77d9de8ddd542151d7b 100644 (file)
@@ -166,12 +166,20 @@ make check-target-libstdc++-v3 RUNTESTFLAGS="-v"
     </p><pre class="programlisting">
 make check-target-libstdc++-v3 RUNTESTFLAGS="-v -v"
 </pre><p>
-      To run a subset of the library tests, you will need to generate
-      the <span class="emphasis"><em>testsuite_files</em></span> file by running
+      To run a subset of the library tests, you can either generate the
+      <span class="emphasis"><em>testsuite_files</em></span> file (described below) by running
       <span class="command"><strong>make testsuite_files</strong></span> in the
-      <span class="emphasis"><em>libbuilddir/testsuite</em></span> directory, described
-      below.  Edit the file to remove the tests you don't want and
-      then run the testsuite as normal.
+      <span class="emphasis"><em>libbuilddir/testsuite</em></span> directory, then edit the
+      file to remove the tests you don't want and then run the testsuite as
+      normal, or you can specify a testsuite and a subset of tests in the
+      RUNTESTFLAGS variable.
+    </p><p>
+      For example, to run only the tests for containers you could use:
+    </p><pre class="programlisting">
+make check-target-libstdc++-v3 RUNTESTFLAGS="conformance.exp=23_containers/*"
+</pre><p>
+      When combining this with other options in RUNTESTFLAGS the
+      <span class="emphasis"><em>testsuite.exp=testfiles</em></span> options must come first.
     </p><p>
       There are two ways to run on a simulator: set up DEJAGNU to point to a
       specially crafted site.exp, or pass down --target_board flags.
index d3d22647193d58d69a4a2d843dc73cad48196a7d..456c48b26392e39dd19dc7e3fdef27f9a8bea829 100644 (file)
@@ -279,12 +279,26 @@ make check-target-libstdc++-v3 RUNTESTFLAGS="-v -v"
 </programlisting>
 
     <para>
-      To run a subset of the library tests, you will need to generate
-      the <emphasis>testsuite_files</emphasis> file by running
+      To run a subset of the library tests, you can either generate the
+      <emphasis>testsuite_files</emphasis> file (described below) by running
       <command>make testsuite_files</command> in the
-      <emphasis>libbuilddir/testsuite</emphasis> directory, described
-      below.  Edit the file to remove the tests you don't want and
-      then run the testsuite as normal.
+      <emphasis>libbuilddir/testsuite</emphasis> directory, then edit the
+      file to remove the tests you don't want and then run the testsuite as
+      normal, or you can specify a testsuite and a subset of tests in the
+      RUNTESTFLAGS variable.
+    </para>
+
+    <para>
+      For example, to run only the tests for containers you could use:
+    </para>
+
+<programlisting>
+make check-target-libstdc++-v3 RUNTESTFLAGS="conformance.exp=23_containers/*"
+</programlisting>
+
+    <para>
+      When combining this with other options in RUNTESTFLAGS the
+      <emphasis>testsuite.exp=testfiles</emphasis> options must come first.
     </para>
 
     <para>