lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master cc2078b2 09/10: Build default targets for eac


From: Greg Chicares
Subject: [lmi-commits] [lmi] master cc2078b2 09/10: Build default targets for each important build_type
Date: Wed, 8 Jun 2022 19:41:01 -0400 (EDT)

branch: master
commit cc2078b27e6ea20ac250c3156d7e31354b1938a1
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Build default targets for each important build_type
    
    Build all default targets, now that targets inappropriate for each
    build_type have been excluded. This would identify any missing
    exclusions.
    
    Ignore the 'gprof' build_type, which should be considered for removal
    because 'perf' is preferable.
    
    Don't specify the usual default target 'all:' because that shouldn't be
    necessary.
    
    Build default targets before running any specific tests, because
    compilation failures are more serious than test failures.
---
 nychthemeral_test.sh | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 6506f83b..043c6769 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -229,13 +229,15 @@ nychthemeral_clutter='
 /^All [1-9][0-9]* files match./d
 /^# unit tests/d
 /^[1-9][0-9]* tests succeeded/d
-/^# build with shared-object attributes/d
+/^# default targets with shared-object attributes/d
 /^# cgi and cli tests in libstdc++ debug mode/d
 /^Test common gateway interface:/d
 /^Test command line interface:/d
 /^Test sample.cns:/d
 /^Test sample.ill:/d
+/^# default targets in libstdc++ debug mode/d
 /^# unit tests in libstdc++ debug mode/d
+/^# default targets with UBSan/d
 /^# unit tests with UBSan/d
 /^# ubsan tests skipped--used with POSIX only/d
 /^[1-9][0-9]* tests succeeded/d
@@ -340,14 +342,18 @@ printf '\n# unit tests\n\n'
 make "$coefficiency" --output-sync=recurse unit_tests 2>&1 \
   | tee >(grep '\*\*\*') >(grep \?\?\?\?) >(grep '!!!!' --count | xargs printf 
'%d tests succeeded\n') >"$log_dir"/unit_tests
 
-printf '\n# build with shared-object attributes\n\n'
-make "$coefficiency" all build_type=so_test 2>&1 \
+printf '\n# default targets with shared-object attributes\n\n'
+make "$coefficiency" build_type=so_test 2>&1 \
   | tee "$log_dir"/default_targets_so_test | sed -e "$build_clutter"
 
 printf '\n# cgi and cli tests with shared-object attributes\n\n'
 make "$coefficiency" --output-sync=recurse cgi_tests cli_tests 
build_type=so_test 2>&1 \
   | tee "$log_dir"/cgi_cli_so_test | sed -e "$build_clutter" -e 
"$cli_cgi_clutter"
 
+printf '\n# default targets in libstdc++ debug mode\n\n'
+make "$coefficiency" build_type=safestdlib 2>&1 \
+  | tee "$log_dir"/default_targets_safestdlib | sed -e "$build_clutter"
+
 printf '\n# cgi and cli tests in libstdc++ debug mode\n\n'
 make "$coefficiency" --output-sync=recurse cgi_tests cli_tests 
build_type=safestdlib 2>&1 \
   | tee "$log_dir"/cgi_cli_safestdlib | sed -e "$build_clutter" -e 
"$cli_cgi_clutter"
@@ -359,6 +365,10 @@ make "$coefficiency" --output-sync=recurse unit_tests 
build_type=safestdlib 2>&1
 
 if [ "x86_64-pc-linux-gnu" = "$LMI_TRIPLET" ]
 then
+  printf '\n# default targets with UBSan\n\n'
+  make "$coefficiency" build_type=ubsan UBSAN_OPTIONS=print_stacktrace=1 2>&1 \
+    | tee "$log_dir"/default_targets_ubsan | sed -e "$build_clutter"
+
   printf '\n# unit tests with UBSan\n\n'
   # shellcheck disable=SC3001
   (setopt nomultios; \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]