From 0be24126e8fe8411dc2991593b5bb0f45682925e Mon Sep 17 00:00:00 2001 From: Yanbing Date: Wed, 15 Mar 2017 15:33:19 -0700 Subject: [PATCH] Initial introduction of steps to run pester tests. --- Run-OpenSSH-Pester-Tests.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Run-OpenSSH-Pester-Tests.md diff --git a/Run-OpenSSH-Pester-Tests.md b/Run-OpenSSH-Pester-Tests.md new file mode 100644 index 0000000..0648f6e --- /dev/null +++ b/Run-OpenSSH-Pester-Tests.md @@ -0,0 +1,20 @@ +## Build OpenSSH: (skip these steps if you’ve already done) +``` +Pushd .\openssh-portable\contrib\win32\openssh +Import-Module .\appveyor.psm1 –Force +Start-SSHBuild -Configuration Debug -NativeHostArch x64 –Verbose +Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 +``` +## Run OpenSSH Pester Tests: +- Deploy Open SSH tests +``` +Install-TestDependencies +Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 +cd $env:SystemDrive\OpenSSH +``` +- Run pester tests : Launch powershell core at "C:\Program Files\PowerShell\6.0.0.12\powershell.exe" and run the below command: +``` +Run-OpenSSHPesterTest –testRoot $env:SystemDrive\OpenSSH -outputXml testresult.xml +``` + Note: If you want to run a particular test, skip step 3 and just launch it: + ```.\SCP.Tests.ps1 ```