Changeset 94c4ae3


Ignore:
Timestamp:
07/17/2013 07:45:57 PM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
09123ca
Parents:
32d4980
Message:

Update to JUnit-4.11

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11448 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/prog/junit.xml

    r32d4980 r94c4ae3  
    77  <!ENTITY junit-download-http "https://launchpad.net/debian/+archive/primary/+files/junit4_4.11.orig.tar.gz">
    88  <!ENTITY junit-download-ftp  " ">
    9   <!ENTITY junit-md5sum        " ">
     9  <!ENTITY junit-md5sum        "b4d163832583dcec8bedb5427c795cc4">
    1010  <!ENTITY junit-size          "1.7 MB">
    11   <!ENTITY junit-buildsize     "15 MB">
    12   <!ENTITY junit-time          "less than 0.1 SBU">
     11  <!ENTITY junit-buildsize     "34 MB">
     12  <!ENTITY junit-time          "0.1 SBU">
    1313]>
    1414
     
    3030    <title>Introduction to JUnit</title>
    3131
    32     <warning><para>Under revison do not use for now.</para></warning>
    33 
    34 
    3532    <para>The <application>JUnit</application> package contains a simple, open
    3633    source framework to write and run repeatable tests. It is an instance of
     
    3936    test data, and test runners for running tests.</para>
    4037
    41 <!--    &lfs73_checked; -->
     38    &lfs73_checked;
    4239
    4340    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    6360    </itemizedlist>
    6461
    65     <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
     62    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    6663    <itemizedlist spacing="compact">
    6764      <listitem>
    6865        <para>
    69           <ulink url="http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar">junit-4.11.jar
    70           (http//anduin.linuxfromscratch.org/sources/other/junit-4.11.jar)
    71           </ulink>
     66          Required file: <ulink
     67             url="http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar">
     68                  http//anduin.linuxfromscratch.org/sources/other/junit-4.11.jar</ulink>
    7269        </para>
    7370      </listitem>
    7471      <listitem>
    7572        <para>
    76           <ulink url="http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz">hamcrest-1.3.tgz
    77           (http//hamcrest.googlecode.com/files/hamcrest-1.3.tgz)
    78           </ulink>
     73          Required file: <ulink
     74             url="http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz">
     75                  http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz </ulink>
    7976        </para>
    8077      </listitem>
     
    8582    <bridgehead renderas="sect4">Required</bridgehead>
    8683    <para role="required">
     84      <xref linkend="apache-ant"/> and
    8785      <xref linkend="unzip"/>
    8886    </para>
     
    9795
    9896    <para>To do a full build of JUnit from source, <xref linkend='apache-ant'/>
    99     is required.  However JUnit is a circular depedency of Apache Ant.  Copy
    100     the JUnit jar file to get started.  Then come back to build from source, if
    101     desired.</para>
     97    is required.  However JUnit is useful in building Apache Ant.  Copy the
     98    JUnit-&junit-version; jar file to get started.  Then come back to build
     99    from source, if desired.</para>
    102100
    103101    <para>Install the <application>JUnit</application> jar file by running the following
     
    105103
    106104<screen role="root"><userinput>install -v -m755 -d /usr/share/java &amp;&amp;
    107 cp -v junit.jar /usr/share/java</userinput></screen>
     105cp -v junit&junit-version;.jar /usr/share/java</userinput></screen>
    108106
    109     <para>Now install the required hamcrest jar files.  Extract the hamcrest-1.3.tgz
    110     files change to the extracted directory.  Then, as the
     107    <para>At this point, make sure Apache-Ant is installed and then continue
     108    with the source build and instalation.  From the directory created when
     109    extracting the JUnit sources, place the required hamcrest jar files where
     110    needed and build the package:</para>
     111
     112<screen role="root"><userinput>tar -xf ../hamcrest-1.3.tgz                              &amp;&amp;
     113cp -v hamcrest-1.3/hamcrest-core-1.3{,-sources}.jar lib/ &amp;&amp;
     114ant dist</userinput></screen>
     115
     116    <para>Testing is automatically done as a part of the build step.</para>
     117
     118    <para>Install the files in the final location as the
    111119    <systemitem class="username">root</systemitem> user:</para>
     120   
     121<screen role="root"><userinput>install -v -m755 -d /usr/share/{doc,java}/junit-&junit-version; &amp;&amp;
     122chown -R root:root .                                 &amp;&amp;
    112123
    113 <screen role="root"><userinput>install -v -m755 -d /usr/share/java/hamcrest        &amp;&amp;
    114 cp -v hamcrest-all-1.3.jar /usr/share/java/hamcrest &amp;&amp;
    115 ln -sv  hamcrest/hamcrest-all-1.3.jar /usr/share/java/hamcrest.jar </userinput></screen>
     124cp -v -R junit*/javadoc/*             /usr/share/doc/junit-&junit-version;  &amp;&amp;
     125cp -v junit*/junit*.jar               /usr/share/java/junit-&junit-version; &amp;&amp;
     126cp -v hamcrest-1.3/hamcrest-core*.jar /usr/share/java/junit-&junit-version;</userinput></screen>
     127   
     128    <para>Finally, update the <envar>CLASSPATH</envar> variable:</para>
    116129
    117     <para>Add the <filename
    118     class='libraryfile'>junit-&junit-version;.jar</filename> and <filename
    119     class='directory'>/usr/share/junit-&junit-version;</filename> directory to
    120     your system <envar>CLASSPATH</envar> environment variable:</para>
     130<screen><userinput>export CLASSPATH=$CLASSPATH:/usr/share/java/junit-&junit-version;</userinput></screen>
     131  </sect2>
    121132
    122 <screen><userinput>export CLASSPATH=$CLASSPATH:\
    123 /usr/share/java/junit-&junit-version;.jar:/usr/share/java/hamcrest.jar</userinput></screen>
    124 <!--
    125     <para>To run the <application>JUnit</application> regression self-tests,
    126     you'll need to have <xref linkend="openjdk"/>,<!- - <xref linkend="jdk"/>,- -> or
    127     <ulink url="http://jikes.sourceforge.net/">Jikes</ulink> installed and the
    128     <envar>CLASSPATH</envar> environment variable updated. Then, as an
    129     unprivileged user, issue:</para>
    130 
    131 <screen><userinput>java org.junit.runner.JUnitCore org.junit.tests.AllTests</userinput></screen>
    132 -->
    133   </sect2>
    134 <!--
    135133  <sect2 role="content">
    136134    <title>Contents</title>
     
    138136    <segmentedlist>
    139137      <segtitle>Installed Programs</segtitle>
    140       <segtitle>Installed Library</segtitle>
     138      <segtitle>Installed Libraies</segtitle>
    141139      <segtitle>Installed Directories</segtitle>
    142140
    143141      <seglistitem>
    144142        <seg>None</seg>
    145         <seg>junit-&junit-version;.jar</seg>
    146         <seg>/usr/share/junit-&junit-version;,
    147         /usr/share/doc/junit-&junit-version;</seg>
     143        <seg>hamcrest-core and junit jar files</seg>
     144        <seg>/usr/share/doc/junit-&junit-version; and
     145             /usr/share/java/junit-&junit-version;</seg>
    148146      </seglistitem>
    149147    </segmentedlist>
     
    155153
    156154      <varlistentry id="junit.jar">
    157         <term><filename class='libraryfile'>junit-&junit-version;.jar</filename></term>
     155        <term><filename class='libraryfile'>junit jar files</filename></term>
    158156        <listitem>
    159157          <para>contains java classes to support the xUnit framework testing
     
    168166
    169167  </sect2>
    170 -->
     168
    171169</sect1>
  • introduction/welcome/changelog.xml

    r32d4980 r94c4ae3  
    4848      <itemizedlist>
    4949        <listitem>
     50          <para>[igor] - Update to JUnit-4.11.</para>
     51        </listitem>
     52        <listitem>
    5053          <para>[igor] - Downgraded Lua to 5.1.5</para>
    5154        </listitem>
Note: See TracChangeset for help on using the changeset viewer.