Andy Schwartzmeyer
d8de5d20bf
Merge pull request #734 from PowerShell/typecataloggen
...
Fix type catalog generation
2016-03-23 13:16:50 -07:00
Andrew Schwartzmeyer
e88e463315
Add regression test .NET class interop
...
This bug arose because of a shortcut previously taken when generating
input for the type catalog generator. With a proper parser created, the
input to the generator is now correct, and so this test should succeed.
2016-03-22 21:41:46 -07:00
JumpingYang001
31ec32896f
Update Fact Skip for not work tests for FileSystemProvider xunit test
2016-03-22 20:23:37 -07:00
JumpingYang001
5c35053350
Update test fix for test_FileSystemProvider.cs
2016-03-22 20:23:37 -07:00
JumpingYang001
920bc1f3f8
Add FileSystemProvider xUnit test for issue 120
2016-03-22 20:23:37 -07:00
JumpingYang001
8141baaa47
Add comparison operator tests for #219
2016-03-22 01:17:22 -07:00
Andy Schwartzmeyer
8c67f6ca6f
Merge pull request #711 from PowerShell/PesterTest_Temp
...
Add Pester Test for Get-PSBreakpoint, Import-Module, Sort-Object #535 #479 #474
2016-03-21 10:30:15 -07:00
TingLiu6
25f8d334d6
Modify Pester Test for Get-PSBreakpoint
2016-03-20 22:04:08 -07:00
Andy Schwartzmeyer
8313aaa418
Merge pull request #695 from PowerShell/NativeLinuxCommandsTest
...
Add Pester tests for calling native Linux commands for #138
2016-03-18 19:39:09 -07:00
TingLiu6
6be57a0b5c
Add Pester Test for Get-PSBreakpoint, Import-Module, Sort-Object
2016-03-18 02:30:26 -07:00
JumpingYang001
bf80880b51
Update Pester test for calling native Linux commands for isssue 138
2016-03-18 00:23:57 -07:00
Andy Schwartzmeyer
3d967c33ec
Merge pull request #697 from PowerShell/RemoveModuleTest
...
Add Pester test for Remove-Module for #536
2016-03-18 00:11:55 -07:00
JumpingYang001
2836fe3714
Add Pester test for Remove-Module
2016-03-17 23:50:23 -07:00
JumpingYang001
89a6b8c1b5
Add Get-Process Pester test for issue 147
2016-03-17 23:49:09 -07:00
JumpingYang001
73fa64c350
Add Pester tests for calling native Linux commands for issue 138
2016-03-17 22:48:35 -07:00
JumpingYang001
c460e52043
Update test fix for test_SessionState.cs
2016-03-17 20:18:29 -07:00
Andrew Schwartzmeyer
1665d6c525
Add SessionStateTests to AssemblyLoadContext collection
2016-03-17 19:11:41 -07:00
JumpingYang001
c42258cfac
Add SessionStateInternal.Drives() xUnit test
...
Resolves #64
2016-03-17 19:10:23 -07:00
Andrew Schwartzmeyer
60ef5cd58d
Add xUnit tests readme
2016-03-17 18:20:05 -07:00
Andrew Schwartzmeyer
6d93a1766b
Add all classes to AssemblyLoadContext collection
...
To ensure that the initializer is called before any other code. This is
as close to a global init hook as I can find.
2016-03-17 18:15:39 -07:00
Andrew Schwartzmeyer
b820817c84
Fix AssemblyLoadContext fixture
...
Resolves #676 .
2016-03-17 17:36:06 -07:00
Andrew Schwartzmeyer
447b3ef729
Update xUnit runner to netstandardapp1.5
...
This was enabled in dotnet/coreclr.xunit#12
2016-03-14 16:51:49 -07:00
Andrew Schwartzmeyer
5901e70dd0
Revert work-around in Json.Tests.ps1
...
This resolves #627 .
2016-03-14 13:39:32 -07:00
Andrew Schwartzmeyer
887ac21256
Remove accidentally committed temporary file
...
This file was used to convert the test from UTF-8 with BOM to ASCII, and
got caught in a `git commit -a`.
2016-03-08 19:15:22 -08:00
Jumping Yang
a504defbb9
Fixed Pester Get-Location test
2016-03-08 14:55:30 +08:00
Andy Schwartzmeyer
299ee6af2e
Merge pull request #628 from PowerShell/osx-ping
...
Fix Start-Process tests
2016-03-04 17:53:15 -08:00
Andrew Schwartzmeyer
0df9b76322
Fix Start-Process tests
...
OS X's ping command requires the flags to be specified before the
arguments. I also reduced the ping count so that the tests execute a bit
faster. This resolves #556 .
2016-03-04 17:35:13 -08:00
George Fleming
e52da3b1e5
Add hardlink test for New-Item
2016-03-04 16:51:24 -08:00
Andrew Schwartzmeyer
6382bfb069
Enable Add-Type test on Windows
...
Resolves #606 .
2016-03-04 15:55:55 -08:00
Andrew Schwartzmeyer
0c6b14adab
Programmatic indentation and whitespace-cleanup of tests
2016-03-04 14:52:27 -08:00
Andrew Schwartzmeyer
0aaf74bdcc
Convert Pester tests to ASCII
...
Instead of UTF-8 with BOM.
Resolves #417 .
2016-03-04 14:48:30 -08:00
Andrew Schwartzmeyer
901160cb78
Fix Get-Location tests
...
These should never have passed.
2016-03-04 14:42:36 -08:00
Andrew Schwartzmeyer
15f8433d98
Use $PSScriptRoot instead of assigning $here
2016-03-04 14:42:08 -08:00
Andrew Schwartzmeyer
c37a0c4a64
Increase New-TimeSpan difference to reduce errant failures
2016-03-04 14:41:33 -08:00
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
da9c58828e
Workaround dotnet/corefx#6603
2016-03-03 17:02:07 -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
Andrew Schwartzmeyer
9f2ce63267
Fix xUnit tests for netstandardapp1.5
...
With the switch to `netstandardapp1.5` framework for the host, the xUnit
test runner broke. For `dotnet test` to work with the .NET Core xUnit
runner, it must continue to target `dnxcore50`. Fortunately, we can
import our project's framework, and make everything work again.
Also improved the `xunit.sh` script to check for dependencies.
2016-02-19 14:40:17 -08:00
Andrew Schwartzmeyer
e6e4dcafbe
Build with new framework and new CLI
...
All libraries now use the framework `netstandard1.5`, and import the
`dnxcore50` and `portable` frameworks. The app that is published,
Microsoft.PowerShell.Linux.Host, that is, the top-level dependency that
emits an executable, instead targets `netstandardapp1.5` and has a new
`runtimes` key so that .NET CLI's `restore` and `publish` commands know
which runtime implementations to resolve.
When switching to the new CLI, we needed to fix how we specified our
dependencies. In particular, the .NET CLI team helped me figure out how
to download packages that are reference assembly only on Linux, with
implementations on Windows. The result of this is the new `frameworks`
setup.
Additionally, we were incorrectly specifying our build dependencies;
that is, projects we also build (not packages). The solution was much
cleaner. We removed the `type: build` section and replaced it with the
version `1.0.0-*` that all our projects currently use.
The `project.json` files also had their names, descriptions,
indentation, and versions fixed.
The build scripts were simplified.
2016-02-18 10:06:56 -08:00
Andrew Schwartzmeyer
dae6e0ebd5
Use Linux.Host in xUnit tests
...
Make its internals visible to the `powershell-tests` assembly, and use its
`MyHost` and `Listener` classes instead of facades.
2016-02-17 17:03:59 -08:00