...

Text file src/github.com/Azure/azure-sdk-for-go/eng/scripts/Invoke-MgmtTestgen.ps1

Documentation: github.com/Azure/azure-sdk-for-go/eng/scripts

     1#Requires -Version 7.0
     2param(
     3    [string]$filter,
     4    [switch]$clean,
     5    [switch]$vet,
     6    [switch]$generateExample,
     7    [switch]$generateMockTest,
     8    [switch]$skipBuild,
     9    [switch]$cleanGenerated,
    10    [switch]$format,
    11    [switch]$tidy,
    12    [string]$config,
    13    [string]$autorestVersion,
    14    [string]$goExtension,
    15    [string]$testExtension,
    16    [string]$outputFolder
    17)
    18
    19. (Join-Path $PSScriptRoot .. common scripts common.ps1)
    20. (Join-Path $PSScriptRoot MgmtTestLib.ps1)
    21
    22try
    23{
    24    $startingDirectory = Get-Location
    25
    26    $sdks = Get-AllPackageInfoFromRepo $filter
    27
    28    foreach ($sdk in $sdks)
    29    {
    30        Push-Location $sdk.DirectoryPath
    31        Invoke-MgmtTestgen -sdkDirectory $sdk.DirectoryPath @psBoundParameters
    32        Pop-Location
    33    }
    34}
    35finally
    36{
    37    Set-Location $startingDirectory
    38}

View as plain text