From b51bb68cdae23eea9eea89ea23fe30de35710133 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 30 May 2020 00:03:55 +0000 Subject: Run sed and findutils tests as an unprivileged user. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11869 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/findutils.xml | 6 ++---- chapter06/sed.xml | 19 ++++--------------- 2 files changed, 6 insertions(+), 19 deletions(-) (limited to 'chapter06') diff --git a/chapter06/findutils.xml b/chapter06/findutils.xml index 15b6d70fb..37393f0de 100644 --- a/chapter06/findutils.xml +++ b/chapter06/findutils.xml @@ -67,10 +67,8 @@ To test the results, issue: -make check - - Two tests are known to fail in the chroot environment: - sv-bug-54171.old-O3 and sv-bug-54171.new-O3. +chown -Rv tester . +su tester -c "PATH=$PATH make check" Install the package: diff --git a/chapter06/sed.xml b/chapter06/sed.xml index aa6ac177c..9dee31ed2 100644 --- a/chapter06/sed.xml +++ b/chapter06/sed.xml @@ -40,26 +40,14 @@ Installation of Sed - First fix an issue in the LFS environment and remove a failing test: + First fix an issue in the LFS environment: -sed -i 's/usr/tools/' build-aux/help2man -sed -i 's/testsuite.panic-tests.sh//' Makefile.in +sed -i 's/usr/tools/' build-aux/help2man Prepare Sed for compilation: ./configure --prefix=/usr --bindir=/bin - Compile the package and generate the HTML documentation: make @@ -67,7 +55,8 @@ make html To test the results, issue: -make check +chown -Rv tester . +su -c "PATH=$PATH make check" Install the package and its documentation: -- cgit v1.2.3-54-g00ecf