Updated Run OpenSSH Pester Tests (markdown)

Yanbing 2017-03-15 15:48:45 -07:00
parent d9690ce29f
commit 8ef49af6a4

@ -1,5 +1,5 @@
## Build OpenSSH: (skip these steps if youve already done) ## Build OpenSSH: (skip these steps if youve already done)
``` ```powershell
Pushd .\openssh-portable\contrib\win32\openssh Pushd .\openssh-portable\contrib\win32\openssh
Import-Module .\appveyor.psm1 Force Import-Module .\appveyor.psm1 Force
Start-SSHBuild -Configuration Debug -NativeHostArch x64 Verbose Start-SSHBuild -Configuration Debug -NativeHostArch x64 Verbose
@ -7,14 +7,17 @@ Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -Nativ
``` ```
## Run OpenSSH Pester Tests: ## Run OpenSSH Pester Tests:
- Deploy Open SSH tests - Deploy Open SSH tests
``` ```powershell
Install-TestDependencies Install-TestDependencies
Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64
cd $env:SystemDrive\OpenSSH 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 pester tests : Launch powershell core at "C:\Program Files\PowerShell\6.0.0.12\powershell.exe" and run the below command:
``` ```powershell
Run-OpenSSHPesterTest testRoot $env:SystemDrive\OpenSSH -outputXml testresult.xml 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: Note: If you want to run a particular test, skip step 3 and just launch it:
```.\SCP.Tests.ps1 ``` ```powershell
.\SCP.Tests.ps1
```