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

@@ -223,6 +223,11 @@ jobs:
- platform: macOS x86_64
runner: macos-13
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Download Test Config
uses: pyTooling/download-artifact@v4
with:

3
.gitmodules vendored
View File

@@ -15,3 +15,6 @@
url = https://github.com/madler/zlib.git
branch = develop
ignore = dirty
[submodule "deps/gtest-parallel"]
path = deps/gtest-parallel
url = https://github.com/google/gtest-parallel.git

1
deps/gtest-parallel vendored Submodule

Submodule deps/gtest-parallel added at 96f4f90492

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)