From b3c1711f623d3c2d72fd661d645207ce8efe5a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Risto=20Peja=C5=A1inovi=C4=87?= Date: Sat, 5 Oct 2024 21:38:58 +0200 Subject: [PATCH] Enable --verbose ctest, for better report in CDash increase the size of ctest passed log message to 16kB from 1kB attemp to fix test output truncation attempt to fix revert failed truncation fix, add label to pearkdl_regblock --- tests/CMakeLists.txt | 2 +- tests/tests/peakrdl/regblock/CMakeLists.txt | 4 ++++ tests/utils/file_pattern_search.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c00cf67..a94d732 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -9,7 +9,7 @@ add_custom_target(check ) add_custom_target(check_cdash - COMMAND ctest -D Nightly $(JOBS) --output-on-failure + COMMAND ctest -D Nightly $(JOBS) --verbose --output-on-failure WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/../ ) diff --git a/tests/tests/peakrdl/regblock/CMakeLists.txt b/tests/tests/peakrdl/regblock/CMakeLists.txt index e76b233..61c5729 100644 --- a/tests/tests/peakrdl/regblock/CMakeLists.txt +++ b/tests/tests/peakrdl/regblock/CMakeLists.txt @@ -4,6 +4,7 @@ include("../../../utils/test_utils.cmake") cmake_minimum_required(VERSION 3.25) project(test NONE) +### A simple test with default arguments add_ip(ip) ip_sources(${IP} SYSTEMRDL @@ -24,7 +25,9 @@ add_test_makefile_rule_match_patterns(${IP}_peakrdl_regblock "-o ${PROJECT_BINARY_DIR}/${IP}_peakrdl_regblock" "${CMAKE_CURRENT_LIST_DIR}/ip.rdl" ) +set_property(TEST ${IP}_peakrdl_regblock PROPERTY LABELS peakrdl) +##### Test with mutliple arguments add_ip(ip2) ip_sources(${IP} SYSTEMRDL @@ -57,3 +60,4 @@ add_test_makefile_rule_match_patterns(${IP}_peakrdl_regblock "-o ${PROJECT_BINARY_DIR}/ip2_regblock" "${CMAKE_CURRENT_LIST_DIR}/ip.rdl ${CMAKE_CURRENT_LIST_DIR}/ip2.rdl" # Keep them in single string to enforce order ) +set_property(TEST ${IP}_peakrdl_regblock PROPERTY LABELS peakrdl) diff --git a/tests/utils/file_pattern_search.py b/tests/utils/file_pattern_search.py index 4d95a18..b117242 100644 --- a/tests/utils/file_pattern_search.py +++ b/tests/utils/file_pattern_search.py @@ -72,6 +72,7 @@ def main(): # Generate and print the report report, return_status = generate_report(results) + console.print(Text("CTEST_FULL_OUTPUT")) console.print(Panel(report, title="Pattern Search Results", expand=False)) # Print the final separator after the report