mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Adds spotless formatting for Gradle, xml, md, and gitignore files. yml linting is not performed as it requires a dependency on npm.
22 lines
721 B
Groovy
22 lines
721 B
Groovy
model {
|
|
tasks {
|
|
def ts = $.testSuites
|
|
project.tasks.register('testDesktopCpp') { testTask->
|
|
def systemArch = getCurrentArch()
|
|
def found = false
|
|
ts.each {
|
|
if (it in GoogleTestTestSuiteSpec && it.name == "${nativeName}Test") {
|
|
it.binaries.each {
|
|
if (found) return
|
|
def arch = it.targetPlatform.name
|
|
if (arch == systemArch && it.buildType.name == 'debug') {
|
|
testTask.dependsOn it.tasks.run
|
|
found = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|