Updated Run OpenSSH Pester Tests (markdown)

Yanbing 2017-03-15 15:51:24 -07:00
parent 8ef49af6a4
commit 5f98db1712

@ -6,14 +6,14 @@ Start-SSHBuild -Configuration Debug -NativeHostArch x64 Verbose
Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64
``` ```
## Run OpenSSH Pester Tests: ## Run OpenSSH Pester Tests:
- Deploy Open SSH tests - Deploy OpenSSH tests
```powershell ```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
``` ```
- 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 ```powershell
cd $env:SystemDrive\OpenSSH
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: