Updated Run OpenSSH Pester Tests (markdown)

Yanbing 2017-03-17 12:37:51 -07:00
parent 7cb31b989a
commit c8903f80b2

@ -7,12 +7,14 @@ Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -Nativ
## Run OpenSSH Pester Tests: ## Run OpenSSH Pester Tests:
- Deploy OpenSSH tests - Deploy OpenSSH tests
```powershell ```powershell
Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 Force
Install-TestDependencies Install-TestDependencies
Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 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: - 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 ```powershell
cd $env:SystemDrive\OpenSSH cd $env:SystemDrive\OpenSSH
Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 Force
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: