Author: randy Date: 2007-03-23 08:54:02 -0600 (Fri, 23 Mar 2007) New Revision: 6684
Added: trunk/BOOK/general/prog/junit.xml Modified: trunk/BOOK/general.ent trunk/BOOK/general/prog/prog.xml trunk/BOOK/introduction/welcome/changelog.xml trunk/BOOK/introduction/welcome/credits.xml Log: Added new package JUnit-4.1 Added: trunk/BOOK/general/prog/junit.xml =================================================================== --- trunk/BOOK/general/prog/junit.xml (rev 0) +++ trunk/BOOK/general/prog/junit.xml 2007-03-23 14:54:02 UTC (rev 6684) @@ -0,0 +1,135 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../../general.ent"> + %general-entities; + + <!ENTITY junit-download-http "http://downloads.sourceforge.net/junit/junit&junit-version;.zip"> + <!ENTITY junit-download-ftp " "> + <!ENTITY junit-md5sum "e66d3e77c70b3297f2c6a12990fc3120"> + <!ENTITY junit-size "622 KB"> + <!ENTITY junit-buildsize "5.2 MB"> + <!ENTITY junit-time "less than 0.1 SBU"> +]> + +<sect1 id="junit" xreflabel="JUnit-&junit-version;"> + <?dbhtml filename="junit.html"?> + + <sect1info> + <othername>$LastChangedBy$</othername> + <date>$Date$</date> + </sect1info> + + <title>JUnit-&junit-version;</title> + + <indexterm zone="junit"> + <primary sortas="a-JUnit">JUnit</primary> + </indexterm> + + <sect2 role="package"> + <title>Introduction to JUnit</title> + + <para>The <application>JUnit</application> package contains a simple, open + source framework to write and run repeatable tests. It is an instance of + the xUnit architecture for unit testing frameworks. JUnit features include + assertions for testing expected results, test fixtures for sharing common + test data, and test runners for running tests.</para> + + <bridgehead renderas="sect3">Package Information</bridgehead> + <itemizedlist spacing="compact"> + <listitem> + <para>Download (HTTP): <ulink url="&junit-download-http;"/></para> + </listitem> + <listitem> + <para>Download (FTP): <ulink url="&junit-download-ftp;"/></para> + </listitem> + <listitem> + <para>Download MD5 sum: &junit-md5sum;</para> + </listitem> + <listitem> + <para>Download size: &junit-size;</para> + </listitem> + <listitem> + <para>Estimated disk space required: &junit-buildsize;</para> + </listitem> + <listitem> + <para>Estimated build time: &junit-time;</para> + </listitem> + </itemizedlist> + + <bridgehead renderas="sect3">JUnit Dependencies</bridgehead> + + <bridgehead renderas="sect4">Required</bridgehead> + <para role="required"><xref linkend="unzip"/></para> + + <para condition="html" role="usernotes">User Notes: + <ulink url="&blfs-wiki;/junit"/></para> + + </sect2> + + <sect2 role="installation"> + <title>Installation of JUnit</title> + + <para>Install <application>JUnit</application> by running the following + commands as the <systemitem class="username">root</systemitem> user:</para> + +<screen role="root"><userinput>install -v -m755 -d /usr/share/{,doc/}junit-&junit-version; && +chown -R root:root . && +cp -v -R junit* org /usr/share/junit-&junit-version; && +cp -v -R * /usr/share/doc/junit-&junit-version;</userinput></screen> + + <para>Add the <filename + class='libraryfile'>junit-&junit-version;.jar</filename> and <filename + class='directory'>/usr/share/junit-&junit-version;</filename> directory to + your <envar>CLASSPATH</envar> environment variable:</para> + +<screen><userinput>export CLASSPATH=$CLASSPATH:\ +/usr/share/junit-&junit-version;/junit-&junit-version;.jar:/usr/share/junit-&junit-version;</userinput></screen> + + <para>To run the <application>JUnit</application> regression self-tests, + you'll need to have <xref linkend="jdk"/> or <ulink + url="http://jikes.sourceforge.net/">Jikes</ulink> installed and the + <envar>CLASSPATH</envar> environment variable updated. Then, as an + unprivileged user, issue:</para> + +<screen><userinput>java org.junit.runner.JUnitCore org.junit.tests.AllTests</userinput></screen> + + </sect2> + + <sect2 role="content"> + <title>Contents</title> + + <segmentedlist> + <segtitle>Installed Programs</segtitle> + <segtitle>Installed Library</segtitle> + <segtitle>Installed Directories</segtitle> + + <seglistitem> + <seg>None</seg> + <seg>junit-&junit-version;.jar</seg> + <seg>/usr/share/junit-&junit-version;, + /usr/share/doc/junit-&junit-version;</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> + + <varlistentry id="junit.jar"> + <term><filename class='libraryfile'>junit-&junit-version;.jar</filename></term> + <listitem> + <para>contains java classes to support the xUnit framework testing + architecture.</para> + <indexterm zone="junit junit.jar"> + <primary sortas="c-junit.jar">junit-&junit-version;.jar</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + +</sect1> Property changes on: trunk/BOOK/general/prog/junit.xml ___________________________________________________________________ Name: svn:keywords + LastChangedBy Date Modified: trunk/BOOK/general/prog/prog.xml =================================================================== --- trunk/BOOK/general/prog/prog.xml 2007-03-21 19:09:27 UTC (rev 6683) +++ trunk/BOOK/general/prog/prog.xml 2007-03-23 14:54:02 UTC (rev 6684) @@ -30,6 +30,7 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc3.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="guile.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="jdk.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="junit.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="librep.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="nasm.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pdl.xml"/> Modified: trunk/BOOK/general.ent =================================================================== --- trunk/BOOK/general.ent 2007-03-21 19:09:27 UTC (rev 6683) +++ trunk/BOOK/general.ent 2007-03-23 14:54:02 UTC (rev 6684) @@ -3,11 +3,11 @@ $Date$ --> -<!ENTITY day "21"> <!-- Always 2 digits --> +<!ENTITY day "23"> <!-- Always 2 digits --> <!ENTITY month "03"> <!-- Always 2 digits --> <!ENTITY year "2007"> <!ENTITY version "svn-&year;&month;&day;"> -<!ENTITY releasedate "March &day;st, &year;"> +<!ENTITY releasedate "March &day;rd, &year;"> <!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP --> <!ENTITY blfs-version "svn"> <!-- svn|[release #] --> <!ENTITY lfs-version "development"> <!-- version|testing|unstable|development] --> @@ -190,6 +190,7 @@ <!ENTITY jdk-bin-string "1_5_0_11"> <!ENTITY jdk-src-version "1.5.0_11"> <!ENTITY jdk-src-string "1_5_0_11"> +<!ENTITY junit-version "4.1"> <!ENTITY librep-version "0.17"> <!ENTITY NASM-version "0.98.39"> <!ENTITY pdl-version "2.4.2"> Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2007-03-21 19:09:27 UTC (rev 6683) +++ trunk/BOOK/introduction/welcome/changelog.xml 2007-03-23 14:54:02 UTC (rev 6684) @@ -42,6 +42,15 @@ --> <listitem> + <para>March 23rd, 2007</para> + <itemizedlist> + <listitem> + <para>[randy] - Added new package JUnit-4.1.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>March 21st, 2007</para> <itemizedlist> <listitem> Modified: trunk/BOOK/introduction/welcome/credits.xml =================================================================== --- trunk/BOOK/introduction/welcome/credits.xml 2007-03-21 19:09:27 UTC (rev 6683) +++ trunk/BOOK/introduction/welcome/credits.xml 2007-03-23 14:54:02 UTC (rev 6684) @@ -273,8 +273,8 @@ gnome-screensaver, gnome-volume-manager, GNOME Doc Utils, GNOME Keyring Manager, GnuCash (many additions), GOffice, Graphviz, GStreamer Base Plug-ins, GStreamer Good Plug-ins, GStreamer Ugly - Plug-ins, HAL, Heimdal, HTML Tidy, ISO Codes, JadeTeX, - Java Access Bridge, K3b, LessTif (rewrite), libexif, libgail-gnome, + Plug-ins, HAL, Heimdal, HTML Tidy, ISO Codes, JadeTeX, Java Access + Bridge, JUnit, K3b, LessTif (rewrite), libexif, libgail-gnome, libgnomecups, Libidn, libmpeg2, libmusicbrainz, libquicktime, MIT Kerberos V5 (many updates and enhancements), MPlayer (extensive overhaul), NSS, Other Programming Tools, PDL, Perl Modules, -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
