9
Run OpenSSH Pester Tests
Yanbing edited this page 2018-07-05 11:12:41 -07:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Build OpenSSH: (skip these steps if youve already done)

Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHBuildHelper.psm1 -Force
Start-OpenSSHBuild -Configuration Debug -NativeHostArch x64

Run OpenSSH E2E Tests:

Import-Module C:\git\openssh-portable\contrib\win32\openssh\OpenSSHTestHelper.psm1 -Force
Set-OpenSSHTestEnvironment -Confirm:$false -OpenSSHBinPath c:\openSSH
Invoke-OpenSSHE2ETest

Note: If you want to run a particular test, just launch it by the script name:

#need to explicitly import pester module on win7 only
import-module pester
.\SCP.Tests.ps1