diff options
author | Greg Schafer <greg@linuxfromscratch.org> | 2003-09-24 11:17:06 +0000 |
---|---|---|
committer | Greg Schafer <greg@linuxfromscratch.org> | 2003-09-24 11:17:06 +0000 |
commit | e0050677e5d8d33e767329be8e3efc07b4e86918 (patch) | |
tree | 8559705ebde1ec7bc4b5964714a2fece3628572a /chapter06 | |
parent | c9fb357ffd3c05b917aaa722fae5f846a71a796e (diff) |
Chapter 6 - Coreutils: Rearrange test suite running.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2877 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/coreutils-inst.xml | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/chapter06/coreutils-inst.xml b/chapter06/coreutils-inst.xml index e80ba6719..202578bf0 100644 --- a/chapter06/coreutils-inst.xml +++ b/chapter06/coreutils-inst.xml @@ -24,11 +24,39 @@ provided by Net-tools. Prevent its installation by applying a patch:</para> <para><screen><userinput>make</userinput></screen></para> <para>This package has a test suite available which can perform a number of -checks to ensure it built correctly. Should you choose to run it, the -following commands will do so:</para> +checks to ensure it built correctly. However, this particular test suite makes +some assumptions that aren't quite vaild at this early stage of Chapter 6. We +therefore make a few adjustments to allow the tests to run properly. Should you +choose not to run the test suite, skip down to "Install the package". The +following commands will prepare us for the test suite. Create two dummy groups +and a dummy user name:</para> -<para><screen><userinput>make check-root -make RUN_EXPENSIVE_TESTS=yes check</userinput></screen></para> +<para><screen><userinput>echo "dummy1:x:1000" >> /etc/group +echo "dummy2:x:1001:dummy" >> /etc/group +echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen></para> + +<para>Fix a small permissions problem:</para> + +<para><screen><userinput>chown dummy tests/cut</userinput></screen></para> + +<para>The <userinput>su</userinput> program from Coreutils wasn't installed in +Chapter 5 because it needed <emphasis>root</emphasis> privilege to install. We +work around this problem by installing it now:</para> + +<para><screen><userinput>make install-root</userinput></screen></para> + +<para>Some tests are meant to run as <emphasis>root</emphasis>:</para> + +<para><screen><userinput>make check-root</userinput></screen></para> + +<para>The remainder of the tests are run as the <emphasis>dummy</emphasis> +user:</para> + +<para><screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen></para> + +<para>Remove the dummy groups and user name:</para> + +<para><screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen></para> <para>Install the package:</para> |