From 759327a73985212b942498d51bb9735a38603018 Mon Sep 17 00:00:00 2001 From: Phillip Mienk Date: Thu, 29 Feb 2024 12:44:46 -0800 Subject: [PATCH] Set log_level=warning when invoking project tests to enable BOOST_WARN output. --- .../libbitcoin-blockchain-test/libbitcoin-blockchain-test.props | 2 +- .../libbitcoin-client-test/libbitcoin-client-test.props | 2 +- .../libbitcoin-consensus-test/libbitcoin-consensus-test.props | 2 +- .../libbitcoin-database-test/libbitcoin-database-test.props | 2 +- .../libbitcoin-explorer-test/libbitcoin-explorer-test.props | 2 +- .../libbitcoin-network-test/libbitcoin-network-test.props | 2 +- .../libbitcoin-node-test/libbitcoin-node-test.props | 2 +- .../libbitcoin-protocol-test/libbitcoin-protocol-test.props | 2 +- .../libbitcoin-server-test/libbitcoin-server-test.props | 2 +- .../libbitcoin-system-test/libbitcoin-system-test.props | 2 +- .../libbitcoin-blockchain-test/libbitcoin-blockchain-test.props | 2 +- .../libbitcoin-client-test/libbitcoin-client-test.props | 2 +- .../libbitcoin-consensus-test/libbitcoin-consensus-test.props | 2 +- .../libbitcoin-database-test/libbitcoin-database-test.props | 2 +- .../libbitcoin-explorer-test/libbitcoin-explorer-test.props | 2 +- .../libbitcoin-network-test/libbitcoin-network-test.props | 2 +- .../libbitcoin-node-test/libbitcoin-node-test.props | 2 +- .../libbitcoin-protocol-test/libbitcoin-protocol-test.props | 2 +- .../libbitcoin-server-test/libbitcoin-server-test.props | 2 +- .../libbitcoin-system-test/libbitcoin-system-test.props | 2 +- templates/gsl.CMakeLists.txt | 1 + templates/gsl.ci.yml | 2 +- templates/gsl.runner.sh | 1 + 23 files changed, 23 insertions(+), 21 deletions(-) diff --git a/props/version3/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props b/props/version3/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props index 99a48060..2c7b10db 100644 --- a/props/version3/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props +++ b/props/version3/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props b/props/version3/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props index 50c3c615..01f04c63 100644 --- a/props/version3/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props +++ b/props/version3/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props b/props/version3/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props index 087b1c10..b6da92c1 100644 --- a/props/version3/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props +++ b/props/version3/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props @@ -26,7 +26,7 @@ - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props b/props/version3/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props index dad4b3b5..387bacde 100644 --- a/props/version3/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props +++ b/props/version3/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props b/props/version3/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props index 67239958..7791c437 100644 --- a/props/version3/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props +++ b/props/version3/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props b/props/version3/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props index d82e3a95..4efe97d8 100644 --- a/props/version3/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props +++ b/props/version3/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props b/props/version3/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props index f8e749b4..4dc94d5f 100644 --- a/props/version3/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props +++ b/props/version3/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props b/props/version3/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props index 0f31f798..a3512d41 100644 --- a/props/version3/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props +++ b/props/version3/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props b/props/version3/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props index ea739a26..77306830 100644 --- a/props/version3/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props +++ b/props/version3/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version3/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props b/props/version3/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props index 05c4c7db..42748600 100644 --- a/props/version3/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props +++ b/props/version3/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props @@ -25,7 +25,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props b/props/version4/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props index 99a48060..2c7b10db 100644 --- a/props/version4/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props +++ b/props/version4/project/libbitcoin-blockchain/libbitcoin-blockchain-test/libbitcoin-blockchain-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props b/props/version4/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props index 50c3c615..01f04c63 100644 --- a/props/version4/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props +++ b/props/version4/project/libbitcoin-client/libbitcoin-client-test/libbitcoin-client-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props b/props/version4/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props index 087b1c10..b6da92c1 100644 --- a/props/version4/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props +++ b/props/version4/project/libbitcoin-consensus/libbitcoin-consensus-test/libbitcoin-consensus-test.props @@ -26,7 +26,7 @@ - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props b/props/version4/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props index dad4b3b5..387bacde 100644 --- a/props/version4/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props +++ b/props/version4/project/libbitcoin-database/libbitcoin-database-test/libbitcoin-database-test.props @@ -16,7 +16,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props b/props/version4/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props index 67239958..7791c437 100644 --- a/props/version4/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props +++ b/props/version4/project/libbitcoin-explorer/libbitcoin-explorer-test/libbitcoin-explorer-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props b/props/version4/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props index d82e3a95..4efe97d8 100644 --- a/props/version4/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props +++ b/props/version4/project/libbitcoin-network/libbitcoin-network-test/libbitcoin-network-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props b/props/version4/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props index b0395b6a..26bf807f 100644 --- a/props/version4/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props +++ b/props/version4/project/libbitcoin-node/libbitcoin-node-test/libbitcoin-node-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props b/props/version4/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props index 0f31f798..a3512d41 100644 --- a/props/version4/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props +++ b/props/version4/project/libbitcoin-protocol/libbitcoin-protocol-test/libbitcoin-protocol-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props b/props/version4/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props index ea739a26..77306830 100644 --- a/props/version4/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props +++ b/props/version4/project/libbitcoin-server/libbitcoin-server-test/libbitcoin-server-test.props @@ -15,7 +15,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/props/version4/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props b/props/version4/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props index 05c4c7db..42748600 100644 --- a/props/version4/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props +++ b/props/version4/project/libbitcoin-system/libbitcoin-system-test/libbitcoin-system-test.props @@ -25,7 +25,7 @@ BOOST_TEST_DYN_LINK;%(PreprocessorDefinitions) - "$(TargetPath)" --run_test=* --show_progress=no --build_info=yes + "$(TargetPath)" --log_level=warning --run_test=* --show_progress=no --build_info=yes diff --git a/templates/gsl.CMakeLists.txt b/templates/gsl.CMakeLists.txt index 8b8f4ac1..89aeb7e2 100644 --- a/templates/gsl.CMakeLists.txt +++ b/templates/gsl.CMakeLists.txt @@ -1446,6 +1446,7 @@ $(my.indent)add_executable( $(target_name(my.product, my.repository)) . define my.run = is_empty(my.tests) ?? "*" ? "$(my.tests)" $(my.indent)add_test( NAME $(target_name(my.product, my.repository)) COMMAND $(target_name(my.product, my.repository)) $(my.indent)--run_test=$(my.run) + $(my.indent)--log_level=warning $(my.indent)--show_progress=no $(my.indent)--detect_memory_leak=0 $(my.indent)--report_level=no diff --git a/templates/gsl.ci.yml b/templates/gsl.ci.yml index 8734586d..104ac7f7 100644 --- a/templates/gsl.ci.yml +++ b/templates/gsl.ci.yml @@ -918,7 +918,7 @@ endfunction # get_sln_tests $BC_TEST_SINGLETON = $BC_TEST_EXES.FullName; Write-Host "Executing $BC_TEST_SINGLETON $env:BOOST_UNIT_TEST_OPTIONS" -ForegroundColor Yellow; try { - Invoke-Expression "$BC_TEST_SINGLETON --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS" + Invoke-Expression "$BC_TEST_SINGLETON --log_level=warning --run_test=${{ matrix.tests }} $env:BOOST_UNIT_TEST_OPTIONS" } catch { $ERR = $_; diff --git a/templates/gsl.runner.sh b/templates/gsl.runner.sh index a1cf2b1a..0c481f2f 100644 --- a/templates/gsl.runner.sh +++ b/templates/gsl.runner.sh @@ -40,6 +40,7 @@ fi . BOOST_UNIT_TEST_OPTIONS=\\ "--run_test=$(my.run) "\\ +"--log_level=warning "\\ "--show_progress=no "\\ "--detect_memory_leak=0 "\\ "--report_level=no "\\