From cd3e518ab5d3a22b29c8ac4c59689ea6982e6be6 Mon Sep 17 00:00:00 2001 From: Yanbing Date: Fri, 16 Jun 2017 16:16:59 -0700 Subject: [PATCH] Updated Run OpenSSH Pester Tests (markdown) --- Run-OpenSSH-Pester-Tests.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Run-OpenSSH-Pester-Tests.md b/Run-OpenSSH-Pester-Tests.md index 993a69a..c5fa84e 100644 --- a/Run-OpenSSH-Pester-Tests.md +++ b/Run-OpenSSH-Pester-Tests.md @@ -1,21 +1,14 @@ ## Build OpenSSH: (skip these steps if you’ve already done) ```powershell -Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 –Force -Start-SSHBuild -Configuration Debug -NativeHostArch x64 –Verbose +Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force +Build-OpenSSH -Configuration Debug -NativeHostArch x64 Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 ``` ## Run OpenSSH Pester Tests: -- Deploy OpenSSH tests ```powershell -Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 –Force -Install-TestDependencies -Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 -``` -- Run pester tests : Launch powershell core windows (for example at **"$env:ProgramFiles\PowerShell\6.0.0.12\powershell.exe"**) and run the below command: -```powershell -cd $env:SystemDrive\OpenSSH -Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 –Force -Run-OpenSSHPesterTest –testRoot $env:SystemDrive\OpenSSH -outputXml testresult.xml +Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHTestHelper.psm1 -Force +Setup-OpenSSHTestEnvironment -Quiet -OpenSSHBinPath Setup-OpenSSHTestEnvironment -Quiet -OpenSSHBinPath +Run-OpenSSHE2ETest ``` Note: If you want to run a particular test, just launch it by the script name: ```powershell