r7186 - trunk/BOOK/server/major

dj at linuxfromscratch.org dj at linuxfromscratch.org
Tue Feb 19 23:21:35 PST 2008

Author: dj
Date: 2008-02-20 00:21:35 -0700 (Wed, 20 Feb 2008)
New Revision: 7186

Corrected OpenSSH testsuite errors

Modified: trunk/BOOK/server/major/openssh.xml
--- trunk/BOOK/server/major/openssh.xml	2008-02-20 07:11:24 UTC (rev 7185)
+++ trunk/BOOK/server/major/openssh.xml	2008-02-20 07:21:35 UTC (rev 7186)
@@ -116,21 +116,29 @@
     build using the <option>--with-tcp-wrappers</option> parameter, ensure
     you add to the sshd line in <filename>/etc/hosts.allow</filename>
     if you have a restrictive <filename>/etc/hosts.deny</filename> file, or the
-    test suite will fail. To run the test suite, as the
-    <systemitem class="username">root</systemitem> user, issue: 
-    <command>make -k tests 2>&1 | tee check.log</command>.  Review the
-    <filename>check.log</filename> file for 'FATAL' tests.</para>
+    test suite will fail. Additionally, the testsuite requires an installed
+    copy of <command>scp</command> to complete the mulitplexing tests.  To
+    run the test suite, issue the following commnds as the 
+    <systemitem class="username">root</systemitem> user:</para>
-    <note><para>The test suite is currently broken, in that it will try to
-    test against the installed <filename>sshd</filename>, which is why we
-    pass <parameter>-k</parameter> to the <command>make</command> command
-    above.  You should run the test suite again after completing the 
-    installation and configuration, without the <parameter>-k</parameter>
-    flag.</para></note>
+<screen role="root"><userinput>if test -f /usr/bin/scp
+    mv /usr/bin/scp /usr/bin/scp-bak
+fi &&
+cp scp /usr/bin/scp &&
+make tests 2>&1 | tee check.log
+grep "FATAL" check.log</userinput></screen>
-    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
+    <para>If the above command produces no 'FATAL' errors, then proceed
+    with the installation, again as the 
+    <systemitem class="username">root</systemitem> user:</para>
-<screen role="root"><userinput>make install &&
+<screen role="root"><userinput>rm /usr/bin/scp &&
+if test -f /usr/bin/scp-bak
+    rm /usr/bin/scp-bak
+fi &&
+make install &&
 install -v -m755 -d /usr/share/doc/openssh-&openssh-version; &&

More information about the blfs-book mailing list