We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 623647a commit 05c51bbCopy full SHA for 05c51bb
ci/test.ps1
@@ -19,12 +19,17 @@ if ($Env:SKIP_TESTS) { exit }
19
function run_test {
20
$TestName = $args[0]
21
22
+ $TestCommand = (ctest -N -V -R "^$TestName$") -join "`n"
23
+
24
+ if (-Not ($TestCommand -match "(?ms).*\n^[0-9]*: Test command: ")) {
25
+ echo "Could not find tests: $TestName"
26
+ exit
27
+ }
28
29
$TestCommand = (ctest -N -V -R "^$TestName$") -join "`n" -replace "(?ms).*\n^[0-9]*: Test command: ","" -replace "\n.*",""
30
$TestCommand += " -r${BuildDir}\results_${TestName}.xml"
31
- Write-Host $TestCommand
32
Invoke-Expression $TestCommand
-
33
if ($LastExitCode -ne 0) { $global:Success = $false }
34
}
35
0 commit comments