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 <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> 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> <!-- CLFS note: "su -c" to set the supplementary group IDs.
For a normal LFS build, they are already set by 'login' or 'su'.
<!-- TODO: Only happens in clfs-ng. Need to investigate. --> But for CLFS there is no such tool available at the beginning of
<para>One test named <filename>chroot-credentials.sh</filename> is chapter 7. Currently coreutils is the only package of which the
known to fail, but it will pass after booting the LFS system.</para> 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 <para>We're going to run the remainder of the tests as the
<systemitem class="username">tester</systemitem> user. Certain tests <systemitem class="username">tester</systemitem> user. Certain tests