aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-11-20 13:47:06 +0100
committerAndre Weissflog <floooh@gmail.com>2022-11-20 13:47:06 +0100
commitefa706cb348bf730262a8b72e157b09bc476b9e0 (patch)
tree339cadfae33e6943733b100a260350409a61bdf6 /tests
parentf9c155cda75b0c38c0aa14d00ec4069bdd89d514 (diff)
tests: add macos static analysis cmake presets
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakePresets.json84
-rwxr-xr-xtests/analyze_macos.sh10
2 files changed, 88 insertions, 6 deletions
diff --git a/tests/CMakePresets.json b/tests/CMakePresets.json
index a651e3c3..e672509e 100644
--- a/tests/CMakePresets.json
+++ b/tests/CMakePresets.json
@@ -25,6 +25,21 @@
}
},
{
+ "name": "macos_gl_analyze",
+ "generator": "Ninja",
+ "binaryDir": "build/macos_gl_analyze",
+ "cacheVariables": {
+ "SOKOL_BACKEND": "SOKOL_GLCORE33",
+ "CMAKE_BUILD_TYPE": "Debug",
+ "USE_ANALYZER": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_C_COMPILER": "clang",
+ "CMAKE_CXX_COMPILER": "clang++"
+ }
+ },
+ {
"name": "macos_metal_debug",
"generator": "Ninja",
"binaryDir": "build/macos_metal_debug",
@@ -43,6 +58,21 @@
}
},
{
+ "name": "macos_metal_analyze",
+ "generator": "Ninja",
+ "binaryDir": "build/macos_metal_analyze",
+ "cacheVariables": {
+ "SOKOL_BACKEND": "SOKOL_METAL",
+ "CMAKE_BUILD_TYPE": "Debug",
+ "USE_ANALYZER": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_C_COMPILER": "clang",
+ "CMAKE_CXX_COMPILER": "clang++"
+ }
+ },
+ {
"name": "macos_arc_gl_debug",
"generator": "Ninja",
"binaryDir": "build/macos_arc_gl_debug",
@@ -69,6 +99,25 @@
}
},
{
+ "name": "macos_arc_gl_analyze",
+ "generator": "Ninja",
+ "binaryDir": "build/macos_arc_gl_analyze",
+ "cacheVariables": {
+ "SOKOL_BACKEND": "SOKOL_GLCORE33",
+ "USE_ARC": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_BUILD_TYPE": "Debug",
+ "USE_ANALYZER": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_C_COMPILER": "clang",
+ "CMAKE_CXX_COMPILER": "clang++"
+ }
+ },
+ {
"name": "macos_arc_metal_debug",
"generator": "Ninja",
"binaryDir": "build/macos_arc_metal_debug",
@@ -95,6 +144,25 @@
}
},
{
+ "name": "macos_arc_metal_analyze",
+ "generator": "Ninja",
+ "binaryDir": "build/macos_arc_metal_analyze",
+ "cacheVariables": {
+ "SOKOL_BACKEND": "SOKOL_METAL",
+ "USE_ARC": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_BUILD_TYPE": "Debug",
+ "USE_ANALYZER": {
+ "type": "BOOL",
+ "value": "ON"
+ },
+ "CMAKE_C_COMPILER": "clang",
+ "CMAKE_CXX_COMPILER": "clang++"
+ }
+ },
+ {
"name": "ios_gl",
"generator": "Xcode",
"binaryDir": "build/ios_gl",
@@ -298,6 +366,10 @@
"configurePreset": "macos_gl_release"
},
{
+ "name": "macos_gl_analyze",
+ "configurePreset": "macos_gl_analyze"
+ },
+ {
"name": "macos_metal_debug",
"configurePreset": "macos_metal_debug"
},
@@ -306,6 +378,10 @@
"configurePreset": "macos_metal_release"
},
{
+ "name": "macos_metal_analyze",
+ "configurePreset": "macos_metal_analyze"
+ },
+ {
"name": "macos_arc_gl_debug",
"configurePreset": "macos_arc_gl_debug"
},
@@ -314,6 +390,10 @@
"configurePreset": "macos_arc_gl_release"
},
{
+ "name": "macos_arc_gl_analyze",
+ "configurePreset": "macos_arc_gl_analyze"
+ },
+ {
"name": "macos_arc_metal_debug",
"configurePreset": "macos_arc_metal_debug"
},
@@ -322,6 +402,10 @@
"configurePreset": "macos_arc_metal_release"
},
{
+ "name": "macos_arc_metal_analyze",
+ "configurePreset": "macos_arc_metal_analyze"
+ },
+ {
"name": "ios_gl_debug",
"configurePreset": "ios_gl",
"configuration": "Debug",
diff --git a/tests/analyze_macos.sh b/tests/analyze_macos.sh
index cfb23cc8..3134070b 100755
--- a/tests/analyze_macos.sh
+++ b/tests/analyze_macos.sh
@@ -1,10 +1,8 @@
set -e
source test_common.sh
-prepare
-analyze macos_metal_analyze SOKOL_METAL Debug
-analyze macos_gl_analyze SOKOL_METAL Debug
-
-analyze_arc macos_arc_metal_analyze SOKOL_GLCORE33 Debug
-analyze_arc macos_arc_gl_analyze SOKOL_GLCORE33 Debug
+build macos_gl_analyze macos_gl_analyze
+build macos_metal_analyze macos_metal_analyze
+build macos_arc_gl_analyze macos_arc_gl_analyze
+build macos_arc_metal_analyze macos_arc_metal_analyze