From 0453e6e98f996313bee7ef9607113dca494867f3 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Wed, 8 Nov 2023 16:11:35 +0800 Subject: [PATCH] Unify indentation for group_function/CMakeLists --- tests/group_functions/CMakeLists.txt | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/group_functions/CMakeLists.txt b/tests/group_functions/CMakeLists.txt index 2f30733f9..d473a8859 100644 --- a/tests/group_functions/CMakeLists.txt +++ b/tests/group_functions/CMakeLists.txt @@ -1,17 +1,17 @@ -function(configure_test_case) - cmake_parse_arguments(CTS - "" "TYPE;IN_FILENAME;OUT_FILENAME;TEST_LIST" "" ${ARGN}) - set(CTS_TYPE_NAME ${CTS_TYPE}) - configure_file(${CTS_IN_FILENAME} ${CTS_OUT_FILENAME}) - list(APPEND ${CTS_TEST_LIST} "${CMAKE_CURRENT_BINARY_DIR}/${CTS_OUT_FILENAME}") - set(${CTS_TEST_LIST} ${${CTS_TEST_LIST}} PARENT_SCOPE) +function(configure_test_case) + cmake_parse_arguments(CTS + "" "TYPE;IN_FILENAME;OUT_FILENAME;TEST_LIST" "" ${ARGN}) + set(CTS_TYPE_NAME ${CTS_TYPE}) + configure_file(${CTS_IN_FILENAME} ${CTS_OUT_FILENAME}) + list(APPEND ${CTS_TEST_LIST} "${CMAKE_CURRENT_BINARY_DIR}/${CTS_OUT_FILENAME}") + set(${CTS_TEST_LIST} ${${CTS_TEST_LIST}} PARENT_SCOPE) endfunction() list(APPEND TEMPLATE_LIST - "group_joint_scan" - "group_scan_over_group" - "group_joint_reduce" - "group_reduce_over_group" + "group_joint_scan" + "group_scan_over_group" + "group_joint_reduce" + "group_reduce_over_group" ) set(TYPE_LIST "") get_std_type(TYPE_LIST) @@ -20,17 +20,17 @@ file(GLOB test_cases_list *.cpp) foreach(TEMP IN LISTS TEMPLATE_LIST) foreach(TY IN LISTS TYPE_LIST) - if(TY STREQUAL "bool") - continue() - endif() - set(OUT_FILE "${TEMP}_${TY}.cpp") - STRING(REGEX REPLACE ":" "_" OUT_FILE ${OUT_FILE}) - STRING(REGEX REPLACE " " "_" OUT_FILE ${OUT_FILE}) - configure_test_case( - TYPE "${TY}" - IN_FILENAME "${TEMP}.cpp.in" - OUT_FILENAME ${OUT_FILE} - TEST_LIST test_cases_list) + if(TY STREQUAL "bool") + continue() + endif() + set(OUT_FILE "${TEMP}_${TY}.cpp") + STRING(REGEX REPLACE ":" "_" OUT_FILE ${OUT_FILE}) + STRING(REGEX REPLACE " " "_" OUT_FILE ${OUT_FILE}) + configure_test_case( + TYPE "${TY}" + IN_FILENAME "${TEMP}.cpp.in" + OUT_FILENAME ${OUT_FILE} + EST_LIST test_cases_list) endforeach() endforeach()