-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathruntests.ps1
More file actions
46 lines (36 loc) · 951 Bytes
/
runtests.ps1
File metadata and controls
46 lines (36 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[CmdletBinding()]
param(
# Ignore the QA tests
[switch]$NoAqua,
# Ignore the Jet tests
[switch]$NoJet,
[string[]]$Tests = @(),
[switch]$DisableReResolve
)
$ErrorActionPreference = "Stop"
$projectDir = $PSScriptRoot
$arguments = @()
if ($NoAqua) {
$arguments += "--no-aqua"
}
if ($NoJet) {
$arguments += "--no-jet"
}
if ($Tests.Count -gt 0) {
$arguments += $Tests
}
$test_args = $arguments | ForEach-Object -Process { "`"$_`"" }
$test_args_string = $test_args -join "; "
if ($DisableReResolve) {
$allow_reresolve = "false"
} else {
$allow_reresolve = "true"
}
$commands = "using Pkg`r`n"
if ($arguments.Count -eq 0) {
$commands += "Pkg.test(; allow_reresolve=$allow_reresolve)`r`n"
} else {
$commands += "Pkg.test(; allow_reresolve=$allow_reresolve, test_args=[$test_args_string])`r`n"
}
Write-Verbose -Message "Will execute commands:`r`n$commands"
julia --project=$projectDir -e $commands