This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FAQ entry: making multiple passes of testsuite.


Since this has come up twice in the last week and since the answer was
a newsflash to at least one of our Highly Esteemed Contributors, perhaps
that makes it useful  as a FAQ entry.


Index: faq.html
===================================================================
RCS file: /egcs/carton/cvsfiles/wwwdocs/htdocs/faq.html,v
retrieving revision 1.61
diff -u -p -r1.61 faq.html
--- faq.html	1998/10/25 13:43:32	1.61
+++ faq.html	1998/10/26 04:38:30
@@ -54,6 +54,7 @@
   <li><a href="#irixlinks">Links to other FAQs for GCC on Irix platforms?</a>
   <li><a href="#squangle">How to work around too long C++ symbol names? 
 	 (<tt>-fsquangle</tt>)</a>
+  <li><a href="#multipletests">How can I run the test suite with multiple options?</a>
 </ol>
 
 <hr>
@@ -873,9 +874,26 @@ have to rebuild them all again. :-(
 initialized by default), then rebuilding egcs and any C++ libraries.
 
 <hr>
+<h2><a name="multipletests"> How can I run the test suite with multiple options? </a></h2>
 
+<p>If you invoke <code>runtest</code> directly, you can use the
+<code>--target_board</code> option, e.g:
+<pre>
+  runtest --target_board "unix{-fPIC,-fpic,}" &lt;other options&gt;
+</pre>
+Or, if you use <code>make check</code> you can use the
+<code>make</code> variable <code>RUNTESTFLAGS</code>, e.g:
+<pre>
+  make RUNTESTFLAGS='--target_board "unix{-fPIC,-fpic,}"' check-gcc
+</pre>
+<p>Either of these examples will run the tests three times.   Once 
+with <code>-fPIC</code>, once with <code>-fpic</code>, and once with 
+no additional flags.
+<p>This technique is particularly useful on multilibbed targets.
+<hr>
+
 <p><a href="index.html">Return to the EGCS home page</a>
-<p><i>Last modified:  September 28, 1998</i>
+<p><i>Last modified:  October 25, 1998</i>
 
 <!--#include virtual="/glimpsebox.html"-->
 </body>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]