From 1d5f3e309f0d04fd3023f2ec9bc180f2f71091cd Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 7 Jan 2018 20:20:12 +0000 Subject: [PATCH] Always generate test instructions, and comment unwanted ones out. Fixes ticket #1695 --- Config.in | 25 +++++---- LFS/lfs.xsl | 144 ++++++++++++++++++++++++++-------------------------- 2 files changed, 87 insertions(+), 82 deletions(-) diff --git a/Config.in b/Config.in index 3cb2c75..dde3c56 100644 --- a/Config.in +++ b/Config.in @@ -799,21 +799,23 @@ depends !BOOK_BLFS default y help #-- Run test suites - # + # If you select 'y' here: # You will have to select between: - # # - Only critical final system testsuites # - All final system testsuites # - Both temporary tools and final system testsuites - # - # HLFS and CLFS have no testsuites available in the - # temporary tools phase # You will be prompted also about the "flavour" of the # testsuites run: - # # - Don't stop on test suite failures # - Abort the build at the first test suite failure # + # Note that in any case, all the test instructions will + # be generated. Those which are not wanted will be commented + # out. If you select 'n' here, the commented test instructions + # do not stop on test suite failures. + # + # HLFS and CLFS have no testsuites available in the + # temporary tools phase menu "Test settings" depends CONFIG_TESTS @@ -826,17 +828,22 @@ depends !BOOK_BLFS help #-- Critical tests: # Only Glibc, Binutils, GMP, MPFR, MPC and GCC - # testsuites for final system + # testsuites for final system. The others are commented + # out. config TST_2 bool "All final system testsuites" + help + #-- All final system test suites: + # Test instructions for the temporary tools (if available) + # are commented out. config TST_3 bool "All testsuites" if !BOOK_HLFS && !BOOK_CLFS help #-- All tests: - # Runs all the testsuites for both temporary tools - # and final system + # Runs all the testsuites for both temporary tools (if + # available) and final system endchoice choice diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 3e94171..24047c2 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -411,88 +411,86 @@ exit - - - - + - - + not(ancestor::sect1[@id='ch-system-binutils']) or + $testsuite = '2' and + ancestor::chapter[@id='chapter-temporary-tools']"> + # + + + - - - - - - >> $TEST_LOG 2>&1 || true - - - - { - - ; } >> $TEST_LOG 2>&1 || true - - - - >> $TEST_LOG 2>&1 || true - - - - make -k - - >> $TEST_LOG 2>&1 || true - - - - - >> $TEST_LOG 2>&1 - - - - + + + + >> $TEST_LOG 2>&1 || true + + + + { + + ; } >> $TEST_LOG 2>&1 || true + + + + >> $TEST_LOG 2>&1 || true + + + + make -k + + >> $TEST_LOG 2>&1 || true - - - - - - >> $TEST_LOG 2>&1 || true - - - - ( - - >> $TEST_LOG 2>&1 && exit $PIPESTATUS) - - - - { - - ; } >> $TEST_LOG 2>&1 - - - - >> $TEST_LOG 2>&1 || true - - - - - >> $TEST_LOG 2>&1 - - - - + + + >> $TEST_LOG 2>&1 + + - + + + + + + + + >> $TEST_LOG 2>&1 || true + + + + ( + + >> $TEST_LOG 2>&1 && exit $PIPESTATUS) + + + + { + + ; } >> $TEST_LOG 2>&1 + + + + >> $TEST_LOG 2>&1 || true + + + + + >> $TEST_LOG 2>&1 + + + + +