blob: 928cc33c923a0bc81b0cf6e3360b194bf97c957f [file] [log] [blame]
Austin Schuh812d0d12021-11-04 20:16:48 -07001model {
2 tasks {
3 def ts = $.testSuites
4 project.tasks.register('testDesktopCpp') { testTask->
5 def systemArch = getCurrentArch()
6 def found = false
7 ts.each {
8 if (it in GoogleTestTestSuiteSpec && it.name == "${nativeName}Test") {
9 it.binaries.each {
10 if (found) return
11 def arch = it.targetPlatform.name
12 if (arch == systemArch && it.buildType.name == 'debug') {
13 testTask.dependsOn it.tasks.run
14 found = true
15 }
16 }
17 }
18 }
19 }
20 }
21}