Run tests in parallel

This commit is contained in:
momo5502
2025-01-26 08:25:11 +01:00
parent d1b8a72559
commit 11dfc02c41
4 changed files with 17 additions and 3 deletions

View File

@@ -19,8 +19,13 @@ if(WIN32)
add_dependencies(windows-emulator-test test-sample)
endif()
set(PYTHON3_EXE "python3")
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(PYTHON3_EXE "python")
endif()
add_test(NAME windows-emulator-test
COMMAND windows-emulator-test
COMMAND "${PYTHON3_EXE}" "${PROJECT_SOURCE_DIR}/deps/gtest-parallel/gtest_parallel.py" ./windows-emulator-test
WORKING_DIRECTORY "$<TARGET_FILE_DIR:windows-emulator-test>")
momo_targets_set_folder("tests" windows-emulator-test)
momo_targets_set_folder("tests" windows-emulator-test)