Skip to content

Commit

Permalink
Apply cmake-format suggested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Wu <22262939+samjwu@users.noreply.github.com>
  • Loading branch information
samjwu committed Jul 30, 2024
1 parent 77f3a2e commit 426d632
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,46 +189,59 @@ message(STATUS "Pytest CPU threadcount: ${PYTEST_NUMPROCS}")

add_test(
NAME test_profile_kernel_execution
COMMAND ${Python3_EXECUTABLE} -m pytest -m kernel_execution --junitxml=tests/test_profile_kernel_execution.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m kernel_execution
--junitxml=tests/test_profile_kernel_execution.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

add_test(
NAME test_profile_ipblocks
COMMAND ${Python3_EXECUTABLE} -m pytest -m block --junitxml=tests/test_profile_blocks.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m block --junitxml=tests/test_profile_blocks.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
set_property(TEST test_profile_ipblocks PROPERTY COST 11)

add_test(
NAME test_profile_dispatch
COMMAND ${Python3_EXECUTABLE} -m pytest -m dispatch --junitxml=tests/test_profile_dispatch.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m dispatch
--junitxml=tests/test_profile_dispatch.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
set_property(TEST test_profile_ipblocks PROPERTY COST 5)

add_test(
NAME test_profile_mem
COMMAND ${Python3_EXECUTABLE} -m pytest -m mem --junitxml=tests/test_profile_mem.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m mem
--junitxml=tests/test_profile_mem.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

add_test(
NAME test_profile_join
COMMAND ${Python3_EXECUTABLE} -m pytest -m join --junitxml=tests/test_profile_join.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m join
--junitxml=tests/test_profile_join.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

add_test(
NAME test_profile_sort
COMMAND ${Python3_EXECUTABLE} -m pytest -m sort --junitxml=tests/test_profile_sort.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m sort
--junitxml=tests/test_profile_sort.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

add_test(
NAME test_profile_misc
COMMAND ${Python3_EXECUTABLE} -m pytest -m misc --junitxml=tests/test_profile_misc.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
COMMAND
${Python3_EXECUTABLE} -m pytest -m misc
--junitxml=tests/test_profile_misc.xml ${COV_OPTION}
${PROJECT_SOURCE_DIR}/tests/test_profile_general.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

set_tests_properties(
Expand All @@ -247,8 +260,10 @@ set_tests_properties(

add_test(
NAME test_analyze_commands
COMMAND ${Python3_EXECUTABLE} -m pytest -n ${PYTEST_NUMPROCS} --junitxml=tests/test_analyze_commands.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_analyze_commands.py
COMMAND
${Python3_EXECUTABLE} -m pytest -n ${PYTEST_NUMPROCS}
--junitxml=tests/test_analyze_commands.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_analyze_commands.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

# ---------------------------
Expand All @@ -257,8 +272,10 @@ add_test(

add_test(
NAME test_analyze_workloads
COMMAND ${Python3_EXECUTABLE} -m pytest -n ${PYTEST_NUMPROCS} --junitxml=tests/test_analyze_workloads.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_analyze_workloads.py
COMMAND
${Python3_EXECUTABLE} -m pytest -n ${PYTEST_NUMPROCS}
--junitxml=tests/test_analyze_workloads.xml
${COV_OPTION} ${PROJECT_SOURCE_DIR}/tests/test_analyze_workloads.py
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})

# ---------
Expand Down

0 comments on commit 426d632

Please sign in to comment.