[Mockpp-commits] mockpp/3party/cxxtest/docs convert.pl,NONE,1.1 guide.html,NONE,1.1 index.html,NONE,
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-12-09 16:00:19
|
Update of /cvsroot/mockpp/mockpp/3party/cxxtest/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31938/3party/cxxtest/docs Added Files: convert.pl guide.html index.html qt.png qt2.png win32.png x11.png Log Message: --- NEW FILE: index.html --- <html> <title>CxxTest</title> <h1>Introduction</h1> <p>CxxTest is a JUnit/CppUnit/xUnit-like framework for C++. <p>Its advantages over existing alternatives are that it: <ul> <li>Doesn't require RTTI <li>Doesn't require member template functions <li>Doesn't require exception handling <li>Doesn't require any external libraries (including memory management, file/console I/O, graphics libraries) <li>Is distributed entirely as a set of header files </ul> <p>This makes it extremely portable and usable. <p>CxxTest is available under the <a href="http://www.gnu.org/copyleft/lesser.html">GNU Lesser General Public License</a>. <p>See <a href="guide.html">the user's guide</a> for information. It is also available as <a href="http://cxxtest.sourceforge.net/guide.pdf">a PDF file</a>. <p>The version history is available <a href="http://cxxtest.sourceforge.net/Versions.html">here</a>. <h1>Getting CxxTest</h1> You can always get the latest release from <a href="http://sourceforge.net/project/showfiles.php?group_id=52834">here</a> or <a href="http://dl.sourceforge.net/cxxtest">here</a>. <p>There are several files you can download: <ul> <li><code>cxxtest-<i>version</i>-1.noarch.rpm</code> <li><code>cxxtest-<i>version</i>.tar.gz</code> <li><code>cxxtest-<i>version</i>.zip</code> <li><code>cxxtest-guide-<i>version</i>.pdf</code> (the user's guide) </ul> Note that, since CxxTest consists entirely of header files, there is no distinction between source and binary distribution. <p>There are also files called <code>cxxtest-selftest-*</code>: these are used (usually by me) to test the portability of CxxTest, so you can probably do without them. <p>If you just can't wait for the next release, I sometimes upload betas to <a href="http://cxxtest.sourceforge.net/beta">here</a>. <h1>Getting started</h1> Get the sources and build the samples in the sample subdirectory. <br> <p> <A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=52834&type=4" border="0" alt="SourceForge Logo"></A> </html> --- NEW FILE: qt.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: qt2.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: guide.html --- <html lang="en"> <head> <title>CxxTest User's Guide</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="CxxTest User's Guide"> <meta name="generator" content="makeinfo 4.3"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home"> </head> <body> <h1 class="settitle">CxxTest User's Guide</h1> <a href="#contents">Table of contents</a> <h2 class="chapter"><a name="TOC0"></a>1 Introduction</h2> <p>CxxTest is a <a href="http://junit.org/">JUnit</a>/<a href="http://cppunit.sourceforge.net">CppUnit</a>/<a href="http://xprogramming.com/software.html">xUnit</a>-like framework for C++. <p>Its advantages over existing alternatives are that it: <ul> <li>Doesn't require RTTI [...1921 lines suppressed...] <li><a href="#TOC88">B.3 <code>CXXTEST_ABORT_TEST_ON_FAIL</code></a> <li><a href="#TOC89">B.4 <code>CXXTEST_USER_VALUE_TRAITS</code></a> <li><a href="#TOC90">B.5 <code>CXXTEST_OLD_TEMPLATE_SYNTAX</code></a> <li><a href="#TOC91">B.6 <code>CXXTEST_OLD_STD</code></a> <li><a href="#TOC92">B.7 <code>CXXTEST_MAX_DUMP_SIZE</code></a> <li><a href="#TOC93">B.8 <code>CXXTEST_DEFAULT_ABORT</code></a> <li><a href="#TOC94">B.9 <code>CXXTEST_LONGLONG</code></a> </li></ul> <li><a name="toc_TOC95" href="#TOC95">Appendix C Runtime options</a> <ul> <li><a href="#TOC96">C.1 <code>setAbortTestOnFail( bool )</code></a> <li><a href="#TOC97">C.2 <code>setMaxDumpSize( unsigned )</code></a> </li></ul> <li><a name="toc_TOC98" href="#TOC98">Appendix D Version history</a> </li></ul> </div> </body></html> --- NEW FILE: x11.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: win32.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: convert.pl --- #!/usr/bin/perl die "Usage: $0 <text file> <html file> <TexInfo file>\n" unless scalar @ARGV == 3; my ($text, $html, $texi) = @ARGV; open TEXT, "<$text" or die "Cannot open text file \"$text\"\n"; open HTML, ">$html" or die "Cannot create html file \"$html\"\n"; open TEXI, ">$texi" or die "Cannot create TexInfo file \"$texi\"\n"; print HTML "<html>"; sub analyze($) { my ($line) = @_; my ($htmlLine, $texiLine) = ($line, $line); # command line options $texiLine =~ s/ (--?[a-z-]*)/ \@option{$1}/g; $htmlLine =~ s/ (--?[a-z-]*)/ <tt>$1<\/tt>/g; # [Class::]function() $texiLine =~ s/([^A-Za-z])(([A-Z][A-Za-z0-9]*::)?[A-Za-z0-9]+\(\))/$1\@code{$2}/g; $htmlLine =~ s/([^A-Za-z])(([A-Z][A-Za-z0-9]*::)?[A-Za-z0-9]+\(\))/$1<code>$2<\/code>/g; # `file' $texiLine =~ s/`([A-Za-z.\/]*)'/\@file{$1}/g; $htmlLine =~ s/`([A-Za-z.\/]*)'/<tt>`$1'<\/tt>/g; # TS... $texiLine =~ s/(^|[^A-Z])(TS[A-Za-z_*()]*)/$1\@code{$2}/g; $htmlLine =~ s/(^|[^A-Z])(TS[A-Za-z_*()]*)/$1<code>$2<\/code>/g; # CXXTEST_ $texiLine =~ s/(CXXTEST_[A-Z_]*)/\@code{$1}/g; $htmlLine =~ s/(CXXTEST_[A-Z_]*)/<tt>$1<\/tt>/g; return ($htmlLine, $texiLine); } my $line; my $inRelease = 0; while ( defined( $line = <TEXT> ) ) { chomp $line; if ( $line =~ m/^CxxTest Releases/ ) { print HTML "<title>CxxTest Releases</title>\n"; print HTML "<h1>CxxTest Releases</h1>\n\n"; print TEXI "\@appendix Version history\n"; print TEXI "\@itemize \@bullet\n"; } elsif ( $line =~ m/^(.*):$/ ) { if ( $inRelease ) { print HTML "</ul>\n\n"; print TEXI "\@end itemize\n"; } print HTML "<h2>$1</h2>\n"; print HTML "<ul>\n"; print TEXI "\@item\n\@strong{$1}\n"; print TEXI "\@itemize \@minus\n"; $inRelease = 1; } elsif ( $line =~ m/^ - (.*)$/ ) { my ($htmlLine, $texiLine) = analyze($1); print HTML "<li>$htmlLine</li>\n"; print TEXI "\@item\n$texiLine\n"; } } if ( $inRelease ) { print HTML "</ul>\n\n"; print TEXI "\@end itemize\n\n"; } print HTML "</html>\n"; print TEXI "\@end itemize\n"; close TEXT or die "Error closing text file \"$text\"\n"; close HTML or die "Error closing html file \"$html\"\n"; close TEXI or die "Error closing TexInfo file \"$texi\"\n"; |