Changeset f4c628c for chapter06/coreutils.xml
- Timestamp:
- 04/03/2007 12:21:48 PM (17 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, 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, 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:
- 9e85ca2
- Parents:
- 85d8df5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/coreutils.xml
r85d8df5 rf4c628c 73 73 <screen><userinput>make</userinput></screen> 74 74 75 <para>The test suite of Coreutils makes several assumptions about the 76 presence of system users and groups that are not valid within the minimal 77 environment that exists at the moment. Therefore, additional items need 78 to be set up before running the tests. Skip down to <quote>Install the 75 <para>Skip down to <quote>Install the 79 76 package</quote> if not running the test suite.</para> 80 81 <para>Create two dummy groups and a dummy user:</para>82 83 <screen><userinput>echo "dummy1:x:1000:" >> /etc/group84 echo "dummy2:x:1001:dummy" >> /etc/group85 echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd</userinput></screen>86 77 87 78 <para>Now the test suite is ready to be run. First, run the tests that are 88 79 meant to be run as user <systemitem class="username">root</systemitem>:</para> 89 80 90 <screen><userinput>make NON_ROOT_USERNAME= dummy check-root</userinput></screen>81 <screen><userinput>make NON_ROOT_USERNAME=nobody check-root</userinput></screen> 91 82 92 83 <para>Then run the remainder of the tests as the 93 <systemitem class="username">dummy</systemitem> user:</para> 94 95 <screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 96 97 <para>When testing is complete, remove the dummy user and groups:</para> 98 99 <screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen> 84 <systemitem class="username">nobody</systemitem> user:</para> 85 86 <screen><userinput>su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 100 87 101 88 <para>Install the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.