mirror of
https://github.com/aphrody-labs/NuGet.Client.git
synced 2026-10-17 12:45:02 +00:00
42 lines
1.1 KiB
PowerShell
42 lines
1.1 KiB
PowerShell
param (
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$NuGetCIToolsFolder,
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$FuncTestRoot)
|
|
|
|
function CopyNuGetCITools
|
|
{
|
|
param (
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$NuGetCIToolsFolder,
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$NuGetTestPath)
|
|
|
|
Write-Host 'Trying to copy necessary tools to ' $NuGetTestPath
|
|
|
|
Copy-Item $NuGetCIToolsFolder\*.exe $NuGetTestPath
|
|
Copy-Item $NuGetCIToolsFolder\*.exe.config $NuGetTestPath
|
|
Copy-Item $NuGetCIToolsFolder\*.dll $NuGetTestPath
|
|
|
|
Write-Host 'Copied the necessary tools to test path ' $NuGetTestPath
|
|
}
|
|
|
|
. "$PSScriptRoot\Utils.ps1"
|
|
. "$PSScriptRoot\NuGetFunctionalTestUtils.ps1"
|
|
|
|
$success = IsAdminPrompt
|
|
|
|
if ($success -eq $false)
|
|
{
|
|
$errorMessage = 'ERROR: Please re-run this script as an Administrator! ' +
|
|
'Updating registry require admin privileges.'
|
|
|
|
Write-Error $errorMessage
|
|
exit 1
|
|
}
|
|
|
|
$NuGetTestPath = Join-Path $FuncTestRoot "EndToEnd"
|
|
CopyNuGetCITools $NuGetCIToolsFolder $NuGetTestPath
|
|
|
|
# Already checked if the prompt is an admin prompt
|
|
DisableCrashDialog |