1. Adds a `libdevilution_so` target when tests are enabled. 2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel). 3. Tests are now defined in a separate `test/CMakeLists.txt` file. 4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest). 5. Tests are now built by default. 6. On CI, test errors are now reported. Also: * `.clang-format`: Enable SortIncludes in tests * `path_test.cpp`: Fix -Wsign-compare
112 lines
3.4 KiB
JSON
112 lines
3.4 KiB
JSON
{
|
|
"configurations": [
|
|
{
|
|
"name": "x64-Debug",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"inheritEnvironments": [ "msvc_x64" ],
|
|
"intelliSenseMode": "windows-msvc-x64",
|
|
"enableClangTidyCodeAnalysis": true,
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Debug-SDL1",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"inheritEnvironments": [ "msvc_x64" ],
|
|
"intelliSenseMode": "windows-msvc-x64",
|
|
"cmakeCommandArgs": "-DUSE_SDL1=ON",
|
|
"enableClangTidyCodeAnalysis": true,
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Release",
|
|
"generator": "Ninja",
|
|
"configurationType": "Release",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"cmakeCommandArgs": "-DCPACK=ON",
|
|
"inheritEnvironments": [ "msvc_x64" ],
|
|
"intelliSenseMode": "windows-msvc-x64",
|
|
"enableClangTidyCodeAnalysis": true,
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Debug",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"inheritEnvironments": [ "msvc_x86" ],
|
|
"intelliSenseMode": "windows-msvc-x86",
|
|
"enableClangTidyCodeAnalysis": true,
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x86-Release",
|
|
"generator": "Ninja",
|
|
"configurationType": "Release",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"cmakeCommandArgs": "-DCPACK=ON",
|
|
"inheritEnvironments": [ "msvc_x86" ],
|
|
"intelliSenseMode": "windows-msvc-x86",
|
|
"enableClangTidyCodeAnalysis": true,
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "x64-Debug-WSL-GCC",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"buildRoot": "${workspaceRoot}\\build\\${name}",
|
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
|
"cmakeExecutable": "cmake",
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"inheritEnvironments": [ "linux_x64" ],
|
|
"wslPath": "${defaultWSLPath}",
|
|
"variables": [
|
|
{
|
|
"name": "DISCORD_INTEGRATION",
|
|
"value": "True",
|
|
"type": "BOOL"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|