From ae7f075dd6185f9ec93d5aedbb46e98511f25235 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 30 May 2020 18:22:47 +0000 Subject: Update to trunk r11877 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/coreutils.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'chapter06/coreutils.xml') diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index f383623a2..6a12d4e80 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -108,35 +108,34 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ Now the test suite is ready to be run. First, run the tests that are meant to be run as user root: -make NON_ROOT_USERNAME=nobody check-root +make NON_ROOT_USERNAME=tester check-root We're going to run the remainder of the tests as the - nobody user. Certain tests, + tester user. Certain tests, however, require that the user be a member of more than one group. So that these tests are not skipped we'll add a temporary group and make the - user nobody a part of it: + user tester a part of it: -echo "dummy:x:1000:nobody" >> /etc/group +echo "dummy:x:1000:tester" >> /etc/group Fix some of the permissions so that the non-root user can compile and run the tests: -chown -Rv nobody . +chown -Rv tester . Now run the tests: -su nobody -s /bin/bash \ - -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - +su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" + Remove the temporary group: sed -i '/dummy/d' /etc/group - Install the package: make install -- cgit v1.2.3-54-g00ecf