зеркало из https://github.com/microsoft/msquic.git
Create XDP BVT test job (#2498)
This commit is contained in:
Родитель
30a97a196a
Коммит
6ef2801af9
|
@ -201,7 +201,7 @@ stages:
|
|||
config: Debug
|
||||
extraName: 'xdp'
|
||||
extraPrepareArgs: -Xdp
|
||||
extraBuildArgs: -EnableTelemetryAsserts -UseXdp -ExtraArtifactDir xdp
|
||||
extraBuildArgs: -EnableTelemetryAsserts -UseXdp -ExtraArtifactDir Xdp
|
||||
|
||||
- stage: build_windows_nontest
|
||||
displayName: Build Windows - Non Tested
|
||||
|
@ -606,6 +606,15 @@ stages:
|
|||
tls: schannel
|
||||
logProfile: Full.Light
|
||||
testCerts: true
|
||||
- template: ./templates/run-bvt.yml
|
||||
parameters:
|
||||
pool: MsQuic-Win-Latest
|
||||
platform: windows
|
||||
tls: schannel
|
||||
logProfile: Full.Light
|
||||
testCerts: true
|
||||
extraArtifactDir: '_Xdp'
|
||||
extraArgs: -DuoNic -ExtraArtifactDir Xdp
|
||||
- template: ./templates/run-bvt.yml
|
||||
parameters:
|
||||
image: windows-2019
|
||||
|
|
|
@ -44,7 +44,9 @@ jobs:
|
|||
filePath: scripts/prepare-machine.ps1
|
||||
${{ if and(eq(parameters.kernel, true), eq(parameters.testCerts, true)) }}:
|
||||
arguments: -Configuration Test -TestCertificates -SignCode
|
||||
${{ if and(eq(parameters.kernel, false), eq(parameters.testCerts, true)) }}:
|
||||
${{ if and(eq(parameters.kernel, false), eq(parameters.testCerts, true), eq(parameters.extraArtifactDir, '_Xdp')) }}:
|
||||
arguments: -Configuration Test -TestCertificates -DuoNic
|
||||
${{ if and(eq(parameters.kernel, false), eq(parameters.testCerts, true), ne(parameters.extraArtifactDir, '_Xdp')) }}:
|
||||
arguments: -Configuration Test -TestCertificates
|
||||
${{ if eq(parameters.testCerts, false) }}:
|
||||
arguments: -Configuration Test
|
||||
|
|
|
@ -59,6 +59,9 @@ as necessary.
|
|||
.Parameter ErrorsAsWarnings
|
||||
Treats all errors as warnings.
|
||||
|
||||
.PARAMETER DuoNic
|
||||
Uses DuoNic instead of loopback.
|
||||
|
||||
#>
|
||||
|
||||
param (
|
||||
|
@ -122,7 +125,10 @@ param (
|
|||
[switch]$ErrorsAsWarnings = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$ExtraArtifactDir = ""
|
||||
[string]$ExtraArtifactDir = "",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$DuoNic = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 'Latest'
|
||||
|
@ -690,6 +696,11 @@ function Get-WindowsKitTool {
|
|||
# Main Execution #
|
||||
##############################################################
|
||||
|
||||
if ($DuoNic) {
|
||||
Log "Short-circuiting unimplemented DuoNic tests."
|
||||
exit
|
||||
}
|
||||
|
||||
# Query all the test cases.
|
||||
$TestCases = GetTestCases
|
||||
if ($null -eq $TestCases) {
|
||||
|
|
|
@ -64,6 +64,9 @@ This script runs the MsQuic tests.
|
|||
.Parameter ErrorsAsWarnings
|
||||
Treats all errors as warnings.
|
||||
|
||||
.Parameter DuoNic
|
||||
Uses DuoNic instead of loopback (DuoNic must already be installed by prepare-machine.ps1).
|
||||
|
||||
.EXAMPLE
|
||||
test.ps1
|
||||
|
||||
|
@ -154,7 +157,10 @@ param (
|
|||
[switch]$SkipUnitTests = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$ErrorsAsWarnings = $false
|
||||
[switch]$ErrorsAsWarnings = $false,
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$DuoNic = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 'Latest'
|
||||
|
@ -256,6 +262,9 @@ if (!(Test-Path $PfxFile)) {
|
|||
# Build up all the arguments to pass to the Powershell script.
|
||||
$TestArguments = "-IsolationMode $IsolationMode -PfxPath $PfxFile"
|
||||
|
||||
if ($DuoNic) {
|
||||
$TestArguments += " -DuoNic"
|
||||
}
|
||||
if ($Kernel) {
|
||||
$TestArguments += " -Kernel $KernelPath"
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче