From 887bf34f49879964ae9614cef6ecd0f94c222cae Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Mar 2024 23:44:17 +0800 Subject: [PATCH 1/3] glibc: Make the command enumerating timed out tests remap="test" So if a test times out, it will be noted in jhalfs log. Also remove "-l" so the output will be something like ./nptl/tst-thread-affinity-pthread: Timed out ... instead of just a puzzling "./nptl/tst-thread-affinity-pthread". --- chapter08/glibc.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 39923c03b..6d1be66ae 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -171,9 +171,7 @@ esac relatively slow and/or running the test suite with multiple parallel make jobs). These tests can be identified with: - - grep "Timed out" -l $(find -name \*.out) + grep "Timed out" $(find -name \*.out) It's possible to re-run a single test with enlarged timeout with From c2d820a7703efd2052e1d59894a913d9491e92a0 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Mar 2024 23:48:58 +0800 Subject: [PATCH 2/3] procps: Run test as tester --- chapter08/procps.xml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/chapter08/procps.xml b/chapter08/procps.xml index 3f229c713..b592f75c2 100644 --- a/chapter08/procps.xml +++ b/chapter08/procps.xml @@ -70,22 +70,17 @@ make make src_w_LDADD='$(LDADD) -lsystemd' - To run the test suite, run: + + To run the test suite, run: -make -k check +su tester -c "PATH=$PATH make check" One test named ps with output flag bsdtime,cputime,etime,etimes is known to fail if the host kernel is not built with - CONFIG_BSD_PROCESS_ACCT enabled. - - Two tests named - pmap X with unreachable process and - pmap XX with unreachable process are known to - fail occasionally. + CONFIG_BSD_PROCESS_ACCT enabled. Install the package: From 2001f5cd7ef8ff791cedfe61974e9ea343b9bd47 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 2 Mar 2024 00:03:28 +0800 Subject: [PATCH 3/3] coreutils: Redirect stdin for test suite to prevent two failures The tests affected are test-getlogin and test/tty/tty.sh. We need an errata for 12.1. --- chapter08/coreutils.xml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 94c276360..68ff3b356 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -123,20 +123,18 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ chown -R tester . - Now run the tests: + + Now run the tests (using /dev/null for the + standard input, or two tests may be broken if building LFS in a + graphical terminal or a session in SSH or GNU Screen etc. because the + standard input is connected to a PTY from host distro, and the device + node for such a PTY cannot be accessed from the LFS chroot + environment): -su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - - +su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" < /dev/null Remove the temporary group: