diff --git a/Run-OpenSSH-Tests.md b/Run-OpenSSH-Tests.md index 797419c..cfda841 100644 --- a/Run-OpenSSH-Tests.md +++ b/Run-OpenSSH-Tests.md @@ -1,21 +1,19 @@ ## Build OpenSSH: (skip these steps if you’ve already done) ```powershell Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force -Build-OpenSSH -Configuration Debug -NativeHostArch x64 -``` -## Install OpenSSH: (skip these steps if you’ve already done) -```powershell -Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force -Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 +Start-OpenSSHBuild -Configuration Debug -NativeHostArch x64 ``` + ## Run OpenSSH E2E Tests: ```powershell Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHTestHelper.psm1 -Force -Setup-OpenSSHTestEnvironment -Quiet -OpenSSHBinPath Setup-OpenSSHTestEnvironment -Quiet -OpenSSHBinPath -Run-OpenSSHE2ETest +Set-OpenSSHTestEnvironment -Confirm:$false -OpenSSHBinPath c:\openSSH +Invoke-OpenSSHE2ETest ``` Note: If you want to run a particular test, just launch it by the script name: ```powershell +#need to explicitly import pester module on win7 only +import-module pester .\SCP.Tests.ps1 ```