Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Add batch script to run all tests against PSv3 and PSv2
Browse files Browse the repository at this point in the history
  • Loading branch information
jstangroome committed Mar 13, 2012
1 parent e13dc99 commit 045d703
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Invoke-AllTests.cmd
@@ -0,0 +1,13 @@
cls

powershell.exe -noprofile %~dp0TestGetPsGet.ps1
@if errorlevel 1 echo FAIL & exit /b %errorlevel%

powershell.exe -noprofile %~dp0Tests.ps1
@if errorlevel 1 echo FAIL & exit /b %errorlevel%

powershell.exe -version 2 -noprofile %~dp0TestGetPsGet.ps1
@if errorlevel 1 echo FAIL & exit /b %errorlevel%

powershell.exe -version 2 -noprofile %~dp0Tests.ps1
@if errorlevel 1 echo FAIL & exit /b %errorlevel%
2 changes: 1 addition & 1 deletion TestGetPsGet.ps1
Expand Up @@ -9,7 +9,7 @@ function SimulateBootstrapDownload {
Get-Content -Path $PSScriptRoot\GetPsGet.ps1 | Out-String
}

Remove-Variable -Name PsGetDestinationModulePath
Remove-Variable -Name PsGetDestinationModulePath -ErrorAction SilentlyContinue
# backup current PSModulePath before testing
$OriginalPSModulePath = $Env:PSModulePath

Expand Down

0 comments on commit 045d703

Please sign in to comment.