]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libstdc++-v3/contrib/libstdc++-v3-4.4/doc/xml/manual/test.xml
update
[l4.git] / l4 / pkg / libstdc++-v3 / contrib / libstdc++-v3-4.4 / doc / xml / manual / test.xml
1 <sect1 id="manual.intro.setup.test" xreflabel="Testing">
2 <?dbhtml filename="test.html"?>
3  
4 <sect1info>
5   <keywordset>
6     <keyword>
7       ISO C++
8     </keyword>
9     <keyword>
10       test
11     </keyword>
12     <keyword>
13       testsuite
14     </keyword>
15     <keyword>
16       performance
17     </keyword>
18     <keyword>
19       conformance
20     </keyword>
21     <keyword>
22       ABI
23     </keyword>
24     <keyword>
25       exception safety
26     </keyword>
27   </keywordset>
28 </sect1info>
29
30 <title>Test</title>
31
32 <para>
33 The libstdc++ testsuite includes testing for standard conformance,
34 regressions, ABI, and performance.
35 </para>
36
37 <sect2 id="test.organization" xreflabel="test.organization">
38 <title>Organization</title>
39
40 <sect3 id="test.organization.layout" xreflabel="Directory Layout">
41 <title>Directory Layout</title>
42
43 <para>
44   The directory <emphasis>libsrcdir/testsuite</emphasis> contains the
45   individual test cases organized in sub-directories corresponding to
46   chapters of the C++ standard (detailed below), the dejagnu test
47   harness support files, and sources to various testsuite utilities
48   that are packaged in a separate testing library.
49 </para>
50
51 <para> 
52   All test cases for functionality required by the runtime components
53   of the C++ standard (ISO 14882) are files within the following
54   directories.
55 </para>
56
57    <programlisting>
58 17_intro
59 18_support
60 19_diagnostics
61 20_util
62 21_strings
63 22_locale
64 23_containers
65 25_algorithms
66 26_numerics
67 27_io
68    </programlisting>
69
70    <para>
71       In addition, the following directories include test files:
72    </para>
73
74    <programlisting>
75 tr1               Tests for components as described by the Technical Report on Standard Library Extensions (TR1).
76 backward          Tests for backwards compatibility and deprecated features.
77 demangle          Tests for __cxa_demangle, the IA 64 C++ ABI demangler
78 ext               Tests for extensions.
79 performance       Tests for performance analysis, and performance regressions.
80 thread            Tests for threads.
81    </programlisting>
82    
83    <para>
84       Some directories don't have test files, but instead contain
85       auxiliary information (<ulink url="#internals">more information</ulink>):
86    </para>
87
88    <programlisting>
89 config            Files for the dejagnu test harness.
90 lib               Files for the dejagnu test harness.
91 libstdc++*        Files for the dejagnu test harness.
92 data              Sample text files for testing input and output.
93 util              Files for libtestc++, utilities and testing routines.
94    </programlisting>
95
96    <para>
97       Within a directory that includes test files, there may be
98       additional subdirectories, or files.  Originally, test cases
99       were appended to one file that represented a particular section
100       of the chapter under test, and was named accordingly. For
101       instance, to test items related to <code> 21.3.6.1 -
102       basic_string::find [lib.string::find]</code> in the standard,
103       the following was used:
104    </para>
105    <programlisting>
106 21_strings/find.cc
107    </programlisting>   
108    <para>
109       However, that practice soon became a liability as the test cases
110       became huge and unwieldy, and testing new or extended
111       functionality (like wide characters or named locales) became
112       frustrating, leading to aggressive pruning of test cases on some
113       platforms that covered up implementation errors. Now, the test
114       suite has a policy of one file, one test case, which solves the
115       above issues and gives finer grained results and more manageable
116       error debugging. As an example, the test case quoted above
117       becomes:
118    </para>
119    <programlisting>
120 21_strings/basic_string/find/char/1.cc
121 21_strings/basic_string/find/char/2.cc
122 21_strings/basic_string/find/char/3.cc
123 21_strings/basic_string/find/wchar_t/1.cc
124 21_strings/basic_string/find/wchar_t/2.cc
125 21_strings/basic_string/find/wchar_t/3.cc
126    </programlisting>   
127
128    <para>
129       All new tests should be written with the policy of one test
130       case, one file in mind. 
131    </para>
132 </sect3>
133
134
135 <sect3 id="test.organization.naming" xreflabel="Naming Conventions">
136 <title>Naming Conventions</title>
137
138    <para>
139       In addition, there are some special names and suffixes that are
140       used within the testsuite to designate particular kinds of
141       tests.
142    </para>
143  
144 <itemizedlist>
145 <listitem>
146   <para>
147    <emphasis>_xin.cc</emphasis>
148   </para>
149    <para>
150       This test case expects some kind of interactive input in order
151       to finish or pass. At the moment, the interactive tests are not
152       run by default. Instead, they are run by hand, like:
153    </para>
154       <programlisting> 
155 g++ 27_io/objects/char/3_xin.cc
156 cat 27_io/objects/char/3_xin.in | a.out
157      </programlisting> 
158 </listitem>
159 <listitem>
160    <para>
161      <emphasis>.in</emphasis>
162    </para>
163    <para>
164       This file contains the expected input for the corresponding <emphasis>
165       _xin.cc</emphasis> test case.
166    </para>
167 </listitem>
168 <listitem>
169   <para>
170    <emphasis>_neg.cc</emphasis>
171   </para>
172    <para>
173       This test case is expected to fail: it's a negative test. At the
174       moment, these are almost always compile time errors.
175    </para>
176 </listitem>
177 <listitem>
178   <para>
179    <emphasis>char</emphasis>
180   </para>
181    <para>
182       This can either be a directory name or part of a longer file
183       name, and indicates that this file, or the files within this
184       directory are testing the <code>char</code> instantiation of a
185       template.
186    </para>
187 </listitem>
188 <listitem>
189   <para>
190    <emphasis>wchar_t</emphasis>
191   </para>
192    <para>
193       This can either be a directory name or part of a longer file
194       name, and indicates that this file, or the files within this
195       directory are testing the <code>wchar_t</code> instantiation of
196       a template. Some hosts do not support <code>wchar_t</code>
197       functionality, so for these targets, all of these tests will not
198       be run.
199    </para>
200 </listitem>
201 <listitem>
202   <para>
203    <emphasis>thread</emphasis>
204   </para>
205    <para>
206       This can either be a directory name or part of a longer file
207       name, and indicates that this file, or the files within this
208       directory are testing situations where multiple threads are
209       being used.
210    </para>
211 </listitem>
212 <listitem>
213   <para>
214    <emphasis>performance</emphasis>
215   </para>
216    <para>
217       This can either be an enclosing directory name or part of a
218       specific file name. This indicates a test that is used to
219       analyze runtime performance, for performance regression testing,
220       or for other optimization related analysis. At the moment, these
221       test cases are not run by default.
222    </para>
223 </listitem>
224 </itemizedlist>
225
226 </sect3>
227 </sect2>
228
229
230 <sect2 id="test.run" xreflabel="test.run">
231 <title>Running the Testsuite</title>
232
233   <sect3 id="test.run.basic" xreflabel="test.run.basic">
234     <title>Basic</title>
235    
236     <para>
237       You can check the status of the build without installing it
238       using the dejagnu harness, much like the rest of the gcc
239       tools.</para>
240    <programlisting> make check</programlisting>
241    <para>in the <emphasis>libbuilddir</emphasis> directory.</para>
242    <para>or</para>
243    <programlisting> make check-target-libstdc++-v3</programlisting>
244    <para>in the <emphasis>gccbuilddir</emphasis> directory.
245      </para>
246
247      <para>
248        These commands are functionally equivalent and will create a
249        'testsuite' directory underneath
250        <emphasis>libbuilddir</emphasis> containing the results of the
251        tests. Two results files will be generated: <emphasis>
252        libstdc++.sum</emphasis>, which is a PASS/FAIL summary for each
253        test, and <emphasis>libstdc++.log</emphasis> which is a log of
254        the exact command line passed to the compiler, the compiler
255        output, and the executable output (if any).
256      </para>
257      
258      <para>
259        Archives of test results for various versions and platforms are
260        available on the GCC website in the <ulink
261        url="http://gcc.gnu.org/gcc-4.3/buildstat.html">build
262        status</ulink> section of each individual release, and are also
263        archived on a daily basis on the <ulink
264        url="http://gcc.gnu.org/ml/gcc-testresults/current">gcc-testresults</ulink>
265        mailing list. Please check either of these places for a similar
266        combination of source version, operating system, and host CPU.
267      </para>
268   </sect3>
269   
270   <sect3 id="test.run.variations" xreflabel="test.run.variations">
271     <title>Variations</title>
272     <para>
273       There are several options for running tests, including testing
274       the regression tests, testing a subset of the regression tests,
275       testing the performance tests, testing just compilation, testing
276       installed tools, etc. In addition, there is a special rule for
277       checking the exported symbols of the shared library.
278     </para>
279     <para>
280       To debug the dejagnu test harness during runs, try invoking with a
281       specific argument to the variable RUNTESTFLAGS, as below.
282     </para>
283
284 <programlisting>
285 make check-target-libstdc++-v3 RUNTESTFLAGS="-v"
286 </programlisting>
287
288     <para>
289       or
290     </para>
291
292 <programlisting>
293 make check-target-libstdc++-v3 RUNTESTFLAGS="-v -v"
294 </programlisting>
295
296     <para>
297       To run a subset of the library tests, you will need to generate
298       the <emphasis>testsuite_files</emphasis> file by running
299       <command>make testsuite_files</command> in the
300       <emphasis>libbuilddir/testsuite</emphasis> directory, described
301       below.  Edit the file to remove the tests you don't want and
302       then run the testsuite as normal.
303     </para>
304
305     <para>
306       There are two ways to run on a simulator: set up DEJAGNU to point to a
307       specially crafted site.exp, or pass down --target_board flags.
308     </para>
309
310     <para>
311     Example flags to pass down for various embedded builds are as follows:
312     </para>
313
314 <programlisting>
315       --target=powerpc-eabism (libgloss/sim)
316 make check-target-libstdc++-v3 RUNTESTFLAGS="--target_board=powerpc-sim"
317
318 --target=calmrisc32 (libgloss/sid)
319 make check-target-libstdc++-v3 RUNTESTFLAGS="--target_board=calmrisc32-sid"
320
321 --target=xscale-elf (newlib/sim)
322 make check-target-libstdc++-v3 RUNTESTFLAGS="--target_board=arm-sim"
323 </programlisting>
324
325     <para> 
326       Also, here is an example of how to run the libstdc++ testsuite
327       for a multilibed build directory with different ABI settings:
328     </para>
329
330  <programlisting>
331 make check-target-libstdc++-v3 RUNTESTFLAGS='--target_board \"unix{-mabi=32,,-mabi=64}\"'
332 </programlisting>
333  
334     <para>
335       You can run the tests with a compiler and library that have
336       already been installed.  Make sure that the compiler (e.g.,
337       <code>g++</code>) is in your <code>PATH</code>.  If you are
338       using shared libraries, then you must also ensure that the
339       directory containing the shared version of libstdc++ is in your
340       <code>LD_LIBRARY_PATH</code>, or equivalent.  If your GCC source
341       tree is at <code>/path/to/gcc</code>, then you can run the tests
342       as follows:
343     </para>
344
345 <programlisting>
346 runtest --tool libstdc++ --srcdir=/path/to/gcc/libstdc++-v3/testsuite
347 </programlisting>
348
349     <para>
350       The testsuite will create a number of files in the directory in
351       which you run this command,.  Some of those files might use the
352       same name as files created by other testsuites (like the ones
353       for GCC and G++), so you should not try to run all the
354       testsuites in parallel from the same directory.
355     </para>
356
357     <para> 
358       In addition, there are some testing options that are mostly of
359       interest to library maintainers and system integrators. As such,
360       these tests may not work on all cpu and host combinations, and
361       may need to be executed in the
362       <emphasis>libbuilddir/testsuite</emphasis> directory.  These
363       options include, but are not necessarily limited to, the
364       following:
365    </para>
366
367    <programlisting>
368    make testsuite_files
369    </programlisting>
370
371   <para>
372     Five files are generated that determine what test files
373     are run. These files are:
374   </para>
375
376    <itemizedlist>
377      <listitem>
378        <para>
379          <emphasis>testsuite_files</emphasis>
380        </para>
381        <para> 
382          This is a list of all the test cases that will be run. Each
383          test case is on a separate line, given with an absolute path
384          from the <emphasis>libsrcdir/testsuite</emphasis> directory.
385        </para>
386      </listitem>
387
388      <listitem>
389        <para>
390          <emphasis>testsuite_files_interactive</emphasis>
391        </para>
392        <para> 
393          This is a list of all the interactive test cases, using the
394          same format as the file list above. These tests are not run
395          by default.
396      </para>
397      </listitem>
398
399      <listitem>
400        <para>
401          <emphasis>testsuite_files_performance</emphasis>
402        </para>
403        <para> 
404          This is a list of all the performance test cases, using the
405          same format as the file list above. These tests are not run
406          by default.
407      </para>
408      </listitem>
409
410      <listitem>
411        <para>
412          <emphasis>testsuite_thread</emphasis>
413        </para>
414        <para> 
415          This file indicates that the host system can run tests which
416          involved multiple threads.
417        </para>
418      </listitem>
419
420      <listitem>
421        <para>
422          <emphasis>testsuite_wchar_t</emphasis>
423        </para>
424        <para> 
425          This file indicates that the host system can run the wchar_t
426          tests, and corresponds to the macro definition <code>
427          _GLIBCXX_USE_WCHAR_T</code> in the file c++config.h.
428        </para>
429      </listitem>
430     </itemizedlist>
431
432    <programlisting>
433    make check-abi
434    </programlisting>
435    
436    <para>
437      The library ABI can be tested. This involves testing the shared
438      library against an ABI-defining previous version of symbol
439      exports. 
440    </para>
441
442   <programlisting>
443    make check-compile
444   </programlisting>
445
446    <para>
447      This rule compiles, but does not link or execute, the
448      <emphasis>testsuite_files</emphasis> test cases and displays the
449      output on stdout.
450    </para>
451
452    <programlisting>
453    make check-performance
454    </programlisting>
455
456    <para>
457      This rule runs through the
458      <emphasis>testsuite_files_performance</emphasis> test cases and
459      collects information for performance analysis and can be used to
460      spot performance regressions. Various timing information is
461      collected, as well as number of hard page faults, and memory
462      used. This is not run by default, and the implementation is in
463      flux.
464    </para>
465
466    <para>
467       We are interested in any strange failures of the testsuite;
468       please email the main libstdc++ mailing list if you see
469       something odd or have questions.
470    </para>
471   </sect3>
472
473   <sect3 id="test.run.permutations" xreflabel="test.run.permutations">
474     <title>Permutations</title>
475     <para>
476       To run the libstdc++ test suite under the <link
477       linkend="manual.ext.debug_mode">debug mode</link>, edit
478       <filename>libstdc++-v3/scripts/testsuite_flags</filename> to add the
479       compile-time flag <constant>-D_GLIBCXX_DEBUG</constant> to the
480       result printed by the <literal>--build-cxx</literal>
481       option. Additionally, add the
482       <constant>-D_GLIBCXX_DEBUG_PEDANTIC</constant> flag to turn on
483       pedantic checking. The libstdc++ test suite should produce
484       precisely the same results under debug mode that it does under
485       release mode: any deviation indicates an error in either the
486       library or the test suite.
487     </para>
488
489     <para>
490       The <link linkend="manual.ext.parallel_mode">parallel
491       mode</link> can be tested in much the same manner, substituting
492       <constant>-D_GLIBCXX_PARALLEL</constant> for
493       <constant>-D_GLIBCXX_DEBUG</constant> in the previous paragraph.
494     </para>
495
496     <para>
497       Or, just run the testsuites with <constant>CXXFLAGS</constant>
498       set to <constant>-D_GLIBCXX_DEBUG</constant> or
499       <constant>-D_GLIBCXX_PARALLEL</constant>.
500     </para>
501   </sect3>
502 </sect2>
503
504 <sect2 id="test.new_tests" xreflabel="test.new_tests">
505 <title>Writing a new test case</title>
506
507    <para>
508     The first step in making a new test case is to choose the correct
509     directory and file name, given the organization as previously
510     described. 
511    </para>
512
513    <para>
514     All files are copyright the FSF, and GPL'd: this is very
515     important.  The first copyright year should correspond to the date
516     the file was checked in to SVN.
517    </para>
518
519    <para>
520      As per the dejagnu instructions, always return 0 from main to
521      indicate success.
522    </para>
523
524    <para>
525    A bunch of utility functions and classes have already been
526    abstracted out into the testsuite utility library, <code>
527    libtestc++</code>. To use this functionality, just include the
528    appropriate header file: the library or specific object files will
529    automatically be linked in as part of the testsuite run.
530    </para>
531
532    <para>
533    For a test that needs to take advantage of the dejagnu test
534    harness, what follows below is a list of special keyword that
535    harness uses. Basically, a test case contains dg-keywords (see
536    dg.exp) indicating what to do and what kinds of behavior are to be
537    expected.  New test cases should be written with the new style
538    DejaGnu framework in mind.
539    </para>
540
541    <para>
542     To ease transition, here is the list of dg-keyword documentation
543     lifted from dg.exp.
544    </para>
545
546 <programlisting>
547 # The currently supported options are:
548 #
549 # dg-prms-id N
550 #       set prms_id to N
551 #
552 # dg-options "options ..." [{ target selector }]
553 #       specify special options to pass to the tool (eg: compiler)
554 #
555 # dg-do do-what-keyword [{ target/xfail selector }]
556 #       `do-what-keyword' is tool specific and is passed unchanged to
557 #       ${tool}-dg-test.  An example is gcc where `keyword' can be any of:
558 #       preprocess|compile|assemble|link|run
559 #       and will do one of: produce a .i, produce a .s, produce a .o,
560 #       produce an a.out, or produce an a.out and run it (the default is
561 #       compile).
562 #
563 # dg-error regexp comment [{ target/xfail selector } [{.|0|linenum}]]
564 #       indicate an error message &lt;regexp&gt; is expected on this line
565 #       (the test fails if it doesn't occur)
566 #       Linenum=0 for general tool messages (eg: -V arg missing).
567 #       "." means the current line.
568 #
569 # dg-warning regexp comment [{ target/xfail selector } [{.|0|linenum}]]
570 #       indicate a warning message &lt;regexp&gt; is expected on this line
571 #       (the test fails if it doesn't occur)
572 #
573 # dg-bogus regexp comment [{ target/xfail selector } [{.|0|linenum}]]
574 #       indicate a bogus error message &lt;regexp&gt; use to occur here
575 #       (the test fails if it does occur)
576 #
577 # dg-build regexp comment [{ target/xfail selector }]
578 #       indicate the build use to fail for some reason
579 #       (errors covered here include bad assembler generated, tool crashes,
580 #       and link failures)
581 #       (the test fails if it does occur)
582 #
583 # dg-excess-errors comment [{ target/xfail selector }]
584 #       indicate excess errors are expected (any line)
585 #       (this should only be used sparingly and temporarily)
586 #
587 # dg-output regexp [{ target selector }]
588 #       indicate the expected output of the program is &lt;regexp&gt;
589 #       (there may be multiple occurrences of this, they are concatenated)
590 #
591 # dg-final { tcl code }
592 #       add some tcl code to be run at the end
593 #       (there may be multiple occurrences of this, they are concatenated)
594 #       (unbalanced braces must be \-escaped)
595 #
596 # "{ target selector }" is a list of expressions that determine whether the
597 # test succeeds or fails for a particular target, or in some cases whether the
598 # option applies for a particular target.  If the case of `dg-do' it specifies
599 # whether the test case is even attempted on the specified target.
600 #
601 # The target selector is always optional.  The format is one of:
602 #
603 # { xfail *-*-* ... } - the test is expected to fail for the given targets
604 # { target *-*-* ... } - the option only applies to the given targets
605 #
606 # At least one target must be specified, use *-*-* for "all targets".
607 # At present it is not possible to specify both `xfail' and `target'.
608 # "native" may be used in place of "*-*-*".
609
610 Example 1: Testing compilation only
611 // { dg-do compile }
612
613 Example 2: Testing for expected warnings on line 36, which all targets fail
614 // { dg-warning "string literals" "" { xfail *-*-* } 36
615
616 Example 3: Testing for expected warnings on line 36
617 // { dg-warning "string literals" "" { target *-*-* } 36
618
619 Example 4: Testing for compilation errors on line 41
620 // { dg-do compile }
621 // { dg-error "no match for" "" { target *-*-* } 41 }
622
623 Example 5: Testing with special command line settings, or without the
624 use of pre-compiled headers, in particular the stdc++.h.gch file. Any
625 options here will override the DEFAULT_CXXFLAGS and PCH_CXXFLAGS set
626 up in the normal.exp file.
627 // { dg-options "-O0" { target *-*-* } }
628 </programlisting>
629
630    <para>
631     More examples can be found in the libstdc++-v3/testsuite/*/*.cc files.
632    </para>
633 </sect2>
634
635
636 <sect2 id="test.harness" xreflabel="Test Harness and Utilities">
637 <title>Test Harness and Utilities</title>
638
639 <sect3 id="test.harness.dejagnu" xreflabel="test.harness.dejagnu">
640 <title>Dejagnu Harness Details</title>
641   <para> 
642     Underlying details of testing for conformance and regressions are
643     abstracted via the GNU Dejagnu package. This is similar to the
644     rest of GCC.
645   </para>
646
647
648 <para>This is information for those looking at making changes to the testsuite
649 structure, and/or needing to trace dejagnu's actions with --verbose.  This
650 will not be useful to people who are "merely" adding new tests to the existing
651 structure.
652 </para>
653
654 <para>The first key point when working with dejagnu is the idea of a "tool".
655 Files, directories, and functions are all implicitly used when they are
656 named after the tool in use.  Here, the tool will always be "libstdc++".
657 </para>
658
659 <para>The <code>lib</code> subdir contains support routines.  The
660 <code>lib/libstdc++.exp</code> file ("support library") is loaded
661 automagically, and must explicitly load the others.  For example, files can
662 be copied from the core compiler's support directory into <code>lib</code>.
663 </para>
664
665 <para>Some routines in <code>lib/libstdc++.exp</code> are callbacks, some are
666 our own.  Callbacks must be prefixed with the name of the tool.  To easily
667 distinguish the others, by convention our own routines are named "v3-*".
668 </para>
669
670 <para>The next key point when working with dejagnu is "test files".  Any
671 directory whose name starts with the tool name will be searched for test files.
672 (We have only one.)  In those directories, any <code>.exp</code> file is
673 considered a test file, and will be run in turn.  Our main test file is called
674 <code>normal.exp</code>; it runs all the tests in testsuite_files using the
675 callbacks loaded from the support library.
676 </para>
677
678 <para>The <code>config</code> directory is searched for any particular "target
679 board" information unique to this library.  This is currently unused and sets
680 only default variables.
681 </para>
682
683 </sect3>
684
685 <sect3 id="test.harness.utils" xreflabel="test.utils">
686 <title>Utilities</title>
687   <para> 
688   </para>
689   <para>
690    The testsuite directory also contains some files that implement
691    functionality that is intended to make writing test cases easier,
692    or to avoid duplication, or to provide error checking in a way that
693    is consistent across platforms and test harnesses. A stand-alone
694    executable, called <emphasis>abi_check</emphasis>, and a static
695    library called <emphasis>libtestc++</emphasis> are
696    constructed. Both of these items are not installed, and only used
697    during testing.
698   </para>
699
700   <para>
701   These files include the following functionality:
702   </para>
703
704   <itemizedlist>
705      <listitem>
706        <para>
707        <emphasis>testsuite_abi.h</emphasis>,
708        <emphasis>testsuite_abi.cc</emphasis>,
709        <emphasis>testsuite_abi_check.cc</emphasis>
710        </para>
711        <para>
712         Creates the executable <emphasis>abi_check</emphasis>.
713         Used to check correctness of symbol versioning, visibility of
714         exported symbols, and compatibility on symbols in the shared
715         library, for hosts that support this feature. More information
716         can be found in the ABI documentation <ulink url="abi.html">here</ulink>
717        </para>
718      </listitem>
719      <listitem>
720        <para>
721        <emphasis>testsuite_allocator.h</emphasis>,
722        <emphasis>testsuite_allocator.cc</emphasis>
723        </para>
724        <para>
725         Contains specialized allocators that keep track of construction
726         and destruction. Also, support for overriding global new and
727         delete operators, including verification that new and delete
728         are called during execution, and that allocation over max_size
729         fails.
730        </para>
731      </listitem>
732      <listitem>
733        <para>
734        <emphasis>testsuite_character.h</emphasis>
735        </para>
736        <para>
737         Contains <code>std::char_traits</code> and
738         <code>std::codecvt</code> specializations for a user-defined
739         POD.
740        </para>
741      </listitem>
742      <listitem>
743        <para>
744        <emphasis>testsuite_hooks.h</emphasis>,
745        <emphasis>testsuite_hooks.cc</emphasis>
746        </para>
747        <para>
748        A large number of utilities, including:
749        </para>
750        <itemizedlist>
751          <listitem><para>VERIFY</para></listitem>
752          <listitem><para>set_memory_limits</para></listitem>
753          <listitem><para>verify_demangle</para></listitem>
754          <listitem><para>run_tests_wrapped_locale</para></listitem>
755          <listitem><para>run_tests_wrapped_env</para></listitem>
756          <listitem><para>try_named_locale</para></listitem>
757          <listitem><para>try_mkfifo</para></listitem>
758          <listitem><para>func_callback</para></listitem>
759          <listitem><para>counter</para></listitem>
760          <listitem><para>copy_tracker</para></listitem>
761          <listitem><para>copy_constructor</para></listitem>
762          <listitem><para>assignment_operator</para></listitem>
763          <listitem><para>destructor</para></listitem>
764          <listitem>
765          <para>pod_char, pod_int and associated char_traits specializations</para>
766          </listitem>
767        </itemizedlist>
768      </listitem>
769      <listitem>
770        <para>
771          <emphasis>testsuite_io.h</emphasis>
772        </para>
773        <para>
774        Error, exception, and constraint checking for
775        <code>std::streambuf, std::basic_stringbuf, std::basic_filebuf</code>.
776        </para>
777      </listitem>
778      <listitem>
779        <para>
780          <emphasis>testsuite_iterators.h</emphasis>
781        </para>
782        <para>
783          Wrappers for various iterators.
784        </para>
785      </listitem>
786      <listitem>
787        <para>
788          <emphasis>testsuite_performance.h</emphasis>
789        </para>
790        <para>
791        A number of class abstractions for performance counters, and
792        reporting functions including:
793        </para>
794       <itemizedlist>
795          <listitem><para>time_counter</para></listitem>
796          <listitem><para>resource_counter</para></listitem>
797          <listitem><para>report_performance</para></listitem>
798       </itemizedlist>
799      </listitem>
800   </itemizedlist>
801 </sect3>
802
803 </sect2>
804 </sect1>