Permalink
Browse files

Add batch script to run all tests against PSv3 and PSv2

  • Loading branch information...
1 parent e13dc99 commit 045d703ef5fabd640cdabda0c1b8830c4dfee4dd @jstangroome jstangroome committed Mar 13, 2012
Showing with 14 additions and 1 deletion.
  1. +13 −0 Invoke-AllTests.cmd
  2. +1 −1 TestGetPsGet.ps1
View
@@ -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%
View
@@ -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

0 comments on commit 045d703

Please sign in to comment.