Commit graph

1922 commits

Author SHA1 Message Date
Andrew Schwartzmeyer 579287c53d Fix ExecutionPolicy tests to -Skip instead of return 2016-03-04 14:40:51 -08:00
Andrew Schwartzmeyer 4feb665203 Update PSVersionTable tests for PSEdition 2016-03-04 14:40:33 -08:00
Andrew Schwartzmeyer 615eca6fd5 Use -Skip:$IsWindows
Uses the $IsWindows etc. booleans from the Microsoft.PowerShell.Platform
module instead of sourcing Test-Common repeatedly.
2016-03-04 14:39:18 -08:00
Andrew Schwartzmeyer de6a452f63 Pester test formatting cleanups 2016-03-04 14:38:01 -08:00
Andrew Schwartzmeyer 7857f13165 Skip SymbolicLink tests on Windows
On Windows, making symbolic links requires administrator access, so
let's skip it.
2016-03-03 18:09:52 -08:00
Andrew Schwartzmeyer d253a4e483 Make Add-Type test -Pending until it passes on Windows 2016-03-03 13:46:35 -08:00
Andy Schwartzmeyer cdd0e9daef Merge pull request #601 from PowerShell/newitem
Modify New-Item to support Symbolic Link on Linux
2016-03-01 16:32:14 -08:00
George Fleming 134ccef8c0 Remove directory symlink first to avoid broken symlink issues 2016-03-01 15:57:16 -08:00
George Fleming d622477073 Change order of delete to get around broken symlink issue 2016-03-01 15:57:16 -08:00
George Fleming 5ab50a183f New test for symlink of directory 2016-03-01 15:57:16 -08:00
Andrew Schwartzmeyer 96be23da1e Add simple regression test for Add-Type 2016-03-01 14:28:17 -08:00
Andrew Schwartzmeyer 9402c68c57 Fix Start-Sleep Pester tests 2016-02-26 13:11:14 -08:00
George Fleming 43d284f6b3 New pester test for Import-LocalizedData 2016-02-11 10:13:56 -08:00
George Fleming 4fe69773d4 Modified Get-ChildItem pester test to check for sorted list of files 2016-02-10 15:52:21 -08:00
Andrew Schwartzmeyer 5442346820 Update Get/Set-ExecutionPolicy tests
Test expected behaviors on both Windows and Linux.
2016-02-09 16:10:10 -08:00
George Fleming 8adffbb2e2 Fix HOMEPATH and Wait-Event tests
On Windows, HOMEPATH is not necessarily `\Users\username`, so the test
was made to match more loosely.

Wait-Event's timeout varied more than expected, so the test's range was
increased.
2016-02-08 10:59:15 -08:00
George Fleming 6ce53af354 Fix errors on CoreCLR Windows port 2016-02-08 10:59:02 -08:00
George Fleming bdffd103d9 Remove / and /tmp references 2016-02-08 10:59:02 -08:00
George Fleming cb6d7011d9 Clean up temp files in pester scripts 2016-02-08 10:59:02 -08:00
Andrew Schwartzmeyer 5845a56d89 Use $env:CORE_ROOT if set, otherwise AppContext.BaseDirectory
Otherwise the Json.NET DLL cannot be found when Pester tests are run
over PSRP.
2016-02-04 12:58:00 -08:00
Andrew Schwartzmeyer 62de9f2645 Fix the Get-Item Pester test
Failed because we renamed the test directory.
2016-01-15 14:31:52 -08:00
Andrew Schwartzmeyer bbebf2f76a Reorganize tests
- Pester source code moved to `test/Pester`, deleted `ext-src`.
- Pester tests (.ps1 files) moved to `test/powershell`
- xUnit tests (.cs files) moved to `test/csharp`
- Third-party script test moved to `test/shebang`
2016-01-14 17:00:06 -08:00