From 5085d8cb19c326c17976dff4f1cccca9470cab23 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 27 Dec 2023 10:38:46 -0800 Subject: [PATCH] build: reflow some text to match CMake documentation style Match the style as recommended by CMake documentation in [1]. This makes it easier to read the command being invoked when running tests. No functional change. [1] https://cmake.org/cmake/help/latest/command/add_test.html --- test/CMakeLists.txt | 56 ++++++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5229740a9..56745a83c 100755 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,39 +21,47 @@ endif() IF (Python3_Interpreter_FOUND) - add_test(NAME html_normalization COMMAND - "$" -m doctest "${CMAKE_CURRENT_SOURCE_DIR}/normalize.py" - ) + add_test(NAME html_normalization + COMMAND "$" -m doctest "${CMAKE_CURRENT_SOURCE_DIR}/normalize.py") if (CMARK_SHARED) - add_test(NAME spectest_library COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" --no-normalize --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" --library-dir "$" - ) + add_test(NAME spectest_library + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" + --no-normalize + --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" + --library-dir "$") - add_test(NAME pathological_tests_library COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/pathological_tests.py" --library-dir "$" - ) + add_test(NAME pathological_tests_library + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/pathological_tests.py" + --library-dir "$") - add_test(NAME roundtriptest_library COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip_tests.py" --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" --library-dir "$" - ) + add_test(NAME roundtriptest_library + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/roundtrip_tests.py" + --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" + --library-dir "$") - add_test(NAME entity_library COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/entity_tests.py" --library-dir "$" - ) + add_test(NAME entity_library + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/entity_tests.py" + --library-dir "$") endif() - add_test(NAME spectest_executable COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" --no-normalize --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" --program "$" - ) + add_test(NAME spectest_executable + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" + --no-normalize + --spec "${CMAKE_CURRENT_SOURCE_DIR}/spec.txt" + --program "$") - add_test(NAME smartpuncttest_executable COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" --no-normalize --spec "${CMAKE_CURRENT_SOURCE_DIR}/smart_punct.txt" --program "$ --smart" - ) + add_test(NAME smartpuncttest_executable + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" + --no-normalize + --spec "${CMAKE_CURRENT_SOURCE_DIR}/smart_punct.txt" + --program "$ --smart") - add_test(NAME regressiontest_executable COMMAND - "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" --no-normalize --spec "${CMAKE_CURRENT_SOURCE_DIR}/regression.txt" --program "$" - ) + add_test(NAME regressiontest_executable + COMMAND "$" "${CMAKE_CURRENT_SOURCE_DIR}/spec_tests.py" + --no-normalize + --spec "${CMAKE_CURRENT_SOURCE_DIR}/regression.txt" + --program "$") ELSE(Python3_Interpreter_FOUND)