Changeset cd0c92d6


Ignore:
Timestamp:
02/22/2004 07:05:53 PM (20 years ago)
Author:
Alex Gronenwoud <alex@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
b157558
Parents:
9da62ab
Message:

Adding a touch of mtab before the running of Coreutils test suite.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3257 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r9da62ab rcd0c92d6  
    66
    77<itemizedlist>
     8
     9<listitem><para>February 22nd, 2004 [alex]: Chapter 6 - Coreutils and
     10E2fsprogs: Clarified the prerequisites for running the tests.</para></listitem>
    811
    912<listitem><para>February 19th, 2004 [alex]: Chapter 5 - Stripping: Removed
  • chapter06/coreutils.xml

    r9da62ab rcd0c92d6  
    4141<screen><userinput>make</userinput></screen>
    4242
    43 <para>The <command>su</command> program from Coreutils wasn't installed in
    44 <xref linkend="chapter-temporary-tools"/> because it needed
    45 <emphasis>root</emphasis> privilege to do so. We're going to need it in a few
    46 moments for the test suite. Therefore we install it now:</para>
     43<para>The test suite of Coreutils makes several assumptions about the presence
     44of files and users that aren't valid yet this early in the LFS build. We will
     45therefore have to set up a few things before being able to run the tests. If
     46you choose not to run these tests, skip down to "Install the package".</para>
     47
     48<para>To be able to run the full test suite, the <command>su</command> program
     49needs to be installed. We didn't bother to install this little program in
     50<xref linkend="chapter-temporary-tools"/> because it requires root privileges,
     51so do it now:</para>
    4752
    4853<screen><userinput>make install-root</userinput></screen>
    4954
    50 <para>The test suite of this package
    51 makes some assumptions with regards to the presence of non-root users and
    52 groups that don't apply this early into the LFS build. We therefore create
    53 a dummy system user and two dummy groups to allow the tests to run
    54 properly. Should you choose not to run the test suite, skip down to
    55 "Install the package". The following commands will prepare us for the test
    56 suite. Create two dummy groups and a dummy user name:</para>
     55<para>Create a 'table of mounted filesystems' file with:</para>
    5756
    58 <screen><userinput>echo "dummy1:x:1000" >> /etc/group
    59 echo "dummy2:x:1001:dummy" >> /etc/group
    60 echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen>
     57<screen><userinput>touch /etc/mtab</userinput></screen>
    6158
    62 <para>Some tests are meant to run as <emphasis>root</emphasis>:</para>
     59<para>And create two dummy groups and a dummy user name:</para>
     60
     61<screen><userinput>echo "dummy1:x:1000" &gt;&gt; /etc/group
     62echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
     63echo "dummy:x:1000:1000:::/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
     64
     65<para>Now you're all set to run the test suite. First run the few tests that
     66are meant to be run as <emphasis>root</emphasis>:</para>
    6367
    6468<screen><userinput>make check-root</userinput></screen>
    6569
    66 <para>The remainder of the tests are run as the <emphasis>dummy</emphasis>
     70<para>Then run the remainder of the tests as the <emphasis>dummy</emphasis>
    6771user:</para>
    6872
    6973<screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    7074
    71 <para>Remove the dummy groups and user name:</para>
     75<para>When you're done testing, remove the dummy user and groups:</para>
    7276
    7377<screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen>
     
    9195<screen><userinput>rm /usr/bin/kill</userinput></screen>
    9296
    93 <para>Finally, create a few necessary symlinks:</para>
     97<para>Finally, create two symlinks to be FHS-compliant:</para>
    9498
    9599<screen><userinput>ln -s test /bin/[
  • chapter06/e2fsprogs.xml

    r9da62ab rcd0c92d6  
    5050<screen><userinput>make</userinput></screen>
    5151
    52 <para>To have the results tested, issue:
    53 <userinput>make check</userinput>.</para>
     52<para>If you wish to have the results tested, first make sure an mtab file
     53exists with <userinput>touch /etc/mtab</userinput> to prevent some sixty tests
     54from failing, and (if it doesn't already exist) fake the presence of an old
     55pager with <userinput>ln -s /tools/bin/cat /bin/more</userinput> to prevent one
     56test from failing, then issue: <userinput>make check</userinput>.</para>
    5457
    5558<para>Install most of the package:</para>
  • chapter06/shadow.xml

    r9da62ab rcd0c92d6  
    3535working:</para>
    3636
    37 <screen><userinput>echo '#define HAVE_SETLOCALE 1' >> config.h</userinput></screen>
     37<screen><userinput>echo '#define HAVE_SETLOCALE 1' &gt;&gt; config.h</userinput></screen>
    3838
    3939<para>Compile the package:</para>
  • index.xml

    r9da62ab rcd0c92d6  
    33                        "/usr/share/docbook/docbookx.dtd" [
    44
    5 <!ENTITY version "CVS-2004-02-19">
    6 <!ENTITY releasedate "February 19th, 2004">
     5<!ENTITY version "CVS-2004-02-22">
     6<!ENTITY releasedate "February 22nd, 2004">
    77<!ENTITY milestone "5.2">
    88<!ENTITY nbsp " ">
Note: See TracChangeset for help on using the changeset viewer.