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
  • Loading branch information
Risto97 committed Oct 5, 2024
1 parent 48a0c5d commit f2d64e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ cmake_minimum_required(VERSION 3.25)
project(SoCMake_testing)

include(CTest)
set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE 16384)

add_custom_target(check
COMMAND ctest $(JOBS) --output-on-failure
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/../
)

add_custom_target(check_cdash
COMMAND ctest -D Nightly $(JOBS) --output-on-failure
COMMAND ctest -D Nightly $(JOBS) --verbose --test-output-size-passed 16384 --output-on-failure
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/../
)

Expand Down
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 f2d64e2

Please sign in to comment.