Changeset ae7f075 for chapter06/coreutils.xml
- Timestamp:
- 05/30/2020 06:22:47 PM (4 years ago)
- 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, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, 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:
- 264dfd9
- Parents:
- f4bb2af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/coreutils.xml
rf4bb2af rae7f075 109 109 meant to be run as user <systemitem class="username">root</systemitem>:</para> 110 110 111 <screen><userinput remap="test">make NON_ROOT_USERNAME= nobodycheck-root</userinput></screen>111 <screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen> 112 112 113 113 <para>We're going to run the remainder of the tests as the 114 <systemitem class="username"> nobody</systemitem> user. Certain tests,114 <systemitem class="username">tester</systemitem> user. Certain tests, 115 115 however, require that the user be a member of more than one group. So that 116 116 these tests are not skipped we'll add a temporary group and make the 117 user <systemitem class="username"> nobody</systemitem> a part of it:</para>118 119 <screen><userinput remap="test">echo "dummy:x:1000: nobody" >> /etc/group</userinput></screen>117 user <systemitem class="username">tester</systemitem> a part of it:</para> 118 119 <screen><userinput remap="test">echo "dummy:x:1000:tester" >> /etc/group</userinput></screen> 120 120 121 121 <para>Fix some of the permissions so that the non-root user can compile and 122 122 run the tests:</para> 123 123 124 <screen><userinput remap="test">chown -Rv nobody. </userinput></screen>124 <screen><userinput remap="test">chown -Rv tester . </userinput></screen> 125 125 126 126 <para>Now run the tests:</para> 127 127 128 <screen><userinput remap="test">su nobody -s /bin/bash \ 129 -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 130 128 <screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 129 <!-- 131 130 <para>The test program test-getlogin is known to fail in a 132 131 partially built system environment like the chroot environment here, but 133 132 passes if run at the end of this chapter. The test program tty.sh is 134 133 also known to fail.</para> 134 --> 135 135 136 136 <para>Remove the temporary group:</para> 137 137 138 138 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> 139 140 139 <para>Install the package:</para> 141 140
Note:
See TracChangeset
for help on using the changeset viewer.