зеркало из https://github.com/microsoft/msquic.git
Support NoProcDump Mode for Windows Test Script (#379)
This commit is contained in:
Родитель
35476a96d8
Коммит
24519588cf
|
@ -93,7 +93,10 @@ param (
|
|||
[switch]$CompressOutput = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$NoProgress = $false
|
||||
[switch]$NoProgress = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$NoProcDump = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 'Latest'
|
||||
|
@ -216,6 +219,9 @@ function Start-TestExecutable([String]$Arguments, [String]$OutputDir) {
|
|||
} else {
|
||||
$pinfo.Arguments = "-g -G $($Path) $($Arguments)"
|
||||
}
|
||||
} elseif ($NoProcDump) {
|
||||
$pinfo.FileName = $Path
|
||||
$pinfo.Arguments = $Arguments
|
||||
} else {
|
||||
$pinfo.FileName = $RootDir + "\bld\tools\procdump64.exe"
|
||||
$pinfo.Arguments = "-ma -e -b -l -accepteula -x $($OutputDir) $($Path) $($Arguments)"
|
||||
|
|
|
@ -125,7 +125,10 @@ param (
|
|||
[switch]$CompressOutput = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$NoProgress = $false
|
||||
[switch]$NoProgress = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$NoProcDump = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 'Latest'
|
||||
|
@ -201,6 +204,9 @@ if ($CompressOutput) {
|
|||
if ($NoProgress) {
|
||||
$TestArguments += " -NoProgress"
|
||||
}
|
||||
if ($NoProcDump) {
|
||||
$TestArguments += " -NoProcDump"
|
||||
}
|
||||
|
||||
# Run the script.
|
||||
Invoke-Expression ($RunTest + " -Path $($MsQuicCoreTest) " + $TestArguments)
|
||||
|
|
Загрузка…
Ссылка в новой задаче