[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; \
- [lmi-commits] [lmi] master updated (56930208 -> 60df9bef), Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 56ba3303 01/10: For the nonce, exclude 'actuarial_table_test' ∩ UBSan, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 6e83ab22 08/10: Make system_test for every architecture, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 5675763a 04/10: Automate UBSan unit tests, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 60df9bef 10/10: Filter out a few routine messages, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master cc2078b2 09/10: Build default targets for each important build_type,
Greg Chicares <=
- [lmi-commits] [lmi] master 7aa985c5 07/10: Preserve discrepancies found in various CLI outputs, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master b4b0e2c9 06/10: Adjust whitespace, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 83e53663 02/10: For the nonce, exclude 'math_functions_test' ∩ UBSan, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master a4cae8ed 05/10: Transplant the last revision, Greg Chicares, 2022/06/08
- [lmi-commits] [lmi] master 12537383 03/10: Remove an unuseful option, Greg Chicares, 2022/06/08