Skip to content

Commit

Permalink
Enable --verbose ctest, for better report in CDash
Browse files Browse the repository at this point in the history
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

fix
  • Loading branch information
Risto97 committed Oct 5, 2024
1 parent 48a0c5d commit 3a3d061
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}/../
)

Expand Down
4 changes: 4 additions & 0 deletions tests/tests/peakrdl/regblock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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_makefile_validate PROPERTY LABELS peakrdl)

##### Test with mutliple arguments
add_ip(ip2)

ip_sources(${IP} SYSTEMRDL
Expand Down Expand Up @@ -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_makefile_validate PROPERTY LABELS peakrdl)
1 change: 1 addition & 0 deletions tests/utils/file_pattern_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a3d061

Please sign in to comment.