clfs-ng: wrap coreutils root test in 'su -c'

This commit is contained in:
Xi Ruoyao 2022-03-16 18:45:21 +08:00
parent f1813455d9
commit 3a67343943
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC

View File

@ -114,11 +114,12 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
<para>Now the test suite is ready to be run. First, run the tests that are
meant to be run as user <systemitem class="username">root</systemitem>:</para>
<screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen>
<!-- TODO: Only happens in clfs-ng. Need to investigate. -->
<para>One test named <filename>chroot-credentials.sh</filename> is
known to fail, but it will pass after booting the LFS system.</para>
<!-- CLFS note: "su -c" to set the supplementary group IDs.
For a normal LFS build, they are already set by 'login' or 'su'.
But for CLFS there is no such tool available at the beginning of
chapter 7. Currently coreutils is the only package of which the
test suite needs the supplementary GIDs set up. -->
<screen><userinput remap="test">su -c 'make NON_ROOT_USERNAME=tester check-root'</userinput></screen>
<para>We're going to run the remainder of the tests as the
<systemitem class="username">tester</systemitem> user. Certain tests