|
@@ -72,31 +72,18 @@
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
|
- <para>The test suite of Coreutils makes several assumptions about the
|
|
|
- presence of system users and groups that are not valid within the minimal
|
|
|
- environment that exists at the moment. Therefore, additional items need
|
|
|
- to be set up before running the tests. Skip down to <quote>Install the
|
|
|
+ <para>Skip down to <quote>Install the
|
|
|
package</quote> if not running the test suite.</para>
|
|
|
|
|
|
- <para>Create two dummy groups and a dummy user:</para>
|
|
|
-
|
|
|
-<screen><userinput>echo "dummy1:x:1000:" >> /etc/group
|
|
|
-echo "dummy2:x:1001:dummy" >> /etc/group
|
|
|
-echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd</userinput></screen>
|
|
|
-
|
|
|
<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>make NON_ROOT_USERNAME=dummy check-root</userinput></screen>
|
|
|
+<screen><userinput>make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
|
|
|
|
|
|
<para>Then run the remainder of the tests as the
|
|
|
- <systemitem class="username">dummy</systemitem> user:</para>
|
|
|
-
|
|
|
-<screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
|
|
|
-
|
|
|
- <para>When testing is complete, remove the dummy user and groups:</para>
|
|
|
+ <systemitem class="username">nobody</systemitem> user:</para>
|
|
|
|
|
|
-<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
|
|
|
+<screen><userinput>su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|