Fix ctests
This commit is contained in:
parent
c8c5b45665
commit
6863282a1e
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
cmake --preset default-vs-msvc-windows
|
cmake --preset default-vs-msvc-windows
|
||||||
cmake --build --preset default-vs-msvc-windows --config Release
|
cmake --build --preset default-vs-msvc-windows --config Release
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ctest --output-on-failure --test-dir build
|
run: ctest --preset default-vs-msvc-windows
|
||||||
- name: Run engine tests
|
- name: Run engine tests
|
||||||
run: |
|
run: |
|
||||||
build/vctest/Release/vctest.exe -e build/Release/VoxelEngine.exe -d dev/tests -u build --output-always
|
build/vctest/Release/vctest.exe -e build/Release/VoxelEngine.exe -d dev/tests -u build --output-always
|
||||||
|
|||||||
@ -5,6 +5,7 @@ option(VOXELENGINE_BUILD_APPDIR "" OFF)
|
|||||||
option(VOXELENGINE_BUILD_TESTS "" OFF)
|
option(VOXELENGINE_BUILD_TESTS "" OFF)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_executable(${PROJECT_NAME} src/main.cpp)
|
add_executable(${PROJECT_NAME} src/main.cpp)
|
||||||
|
|||||||
@ -41,5 +41,21 @@
|
|||||||
"configurePreset": "default-ninja-clang-windows",
|
"configurePreset": "default-ninja-clang-windows",
|
||||||
"configuration": "Debug"
|
"configuration": "Debug"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"testPresets": [
|
||||||
|
{
|
||||||
|
"name": "default-vs-msvc-windows",
|
||||||
|
"configurePreset": "default-vs-msvc-windows",
|
||||||
|
"output": {
|
||||||
|
"outputOnFailure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "default-ninja-clang-windows",
|
||||||
|
"configurePreset": "default-ninja-clang-windows",
|
||||||
|
"output": {
|
||||||
|
"outputOnFailure": true
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user