Commit graph

1101 commits

Author SHA1 Message Date
Zachary Folwick b54a0547b5 Changed platform OS test in Get-PSDrive tests 2015-12-28 15:43:24 -08:00
Zachary Folwick 9813d3d4b3 Removed spurious tests 2015-12-28 11:12:46 -08:00
Zachary Folwick de2af02ff7 Environment-Variables.Tests.ps1 2015-12-28 11:05:48 -08:00
Zachary Folwick 1b4276f563 Added test to validate that fields are getting populated 2015-12-28 10:39:36 -08:00
Zachary Folwick 05989fe455 moved alias test to its own test case 2015-12-28 10:15:19 -08:00
Zachary Folwick 3eb2f5751b Merge branch 'master' into dev/cross-platform-pester 2015-12-28 10:01:39 -08:00
Andrew Schwartzmeyer 49fa9f6e43 Bump monad-native submodule with removal of host 2015-12-23 16:53:09 -08:00
Andrew Schwartzmeyer d5f5645f4d Eliminate dependency on native host for shell
PSRP will of course still require it, but now the managed host sets up
the assembly load context, meaning we can depend on the emitted binary
from dotnet-cli.
2015-12-23 16:53:09 -08:00
Andrew Schwartzmeyer 124fe201bf Don't fail on Jenkins for lack of stty support 2015-12-23 14:07:50 -08:00
Andrew Schwartzmeyer 001bca812e Don't launch any infinite processes
It is too messy to count on being able to stop the infinite processes
that Start-Process tests start. All processes will now stop on their
own, removing the dependency on Stop-Process. The wait test is now not
much of a test however.
2015-12-23 14:00:17 -08:00
Andrew Schwartzmeyer 92368e9cba Fix another Start-Process test
This one would sometimes just fail to stop the process... which is a probably a bug to be fixed.
2015-12-23 13:18:00 -08:00
Andrew Schwartzmeyer b8ca768099 Output Pester results in XML again
And bump submodule.
2015-12-23 13:18:00 -08:00
Andrew Schwartzmeyer af03950506 Bump monad submodule with RuntimeInformation OS check 2015-12-23 12:57:19 -08:00
Andrew Schwartzmeyer b73a33e4e5 Fix another Start-Process test
This test was not viable as it didn't retain the process object,
instead relying on Get-Process with the process name, which could fail
to get the correct process (since no PID was available).

Since it is pointless to test Start-Process without -PassThru, and that
test was the exact same code as the fixed first test, it was removed.
2015-12-23 12:55:36 -08:00
Andrew Schwartzmeyer af1343472d Fix up Get-OmiInstance build and tests
Deploying module is a bit funky until dotnet-cli gives us more control
over which libraries to build and where. Theoretically we'll be able to
package System.Management.Automation and depend on the package instead,
so Commands.Omi can be its own project entirely.

Cleaned up the Commands.Omi project.json as it had some unnecessary
cruft from where it was copied. Also removed the AssemblyInfo as it does
not matter for a new module.

Moved the Get-OmiInstance Pester test to the project's test folder so it
doesn't run with our suite of tests (as it takes a dependency on OMI).
2015-12-23 12:29:08 -08:00
George Fleming f018ea47a4 Added Get-OmiInstance Pester test 2015-12-23 11:16:21 -08:00
George Fleming d0e2c22e54 Added Get-OmiInstance cmdlet
In a separate module importable into PowerShell.
2015-12-23 11:15:38 -08:00
Andrew Schwartzmeyer 2e65ba25e4 Set monad-native submodule branch back to master
Since we're no longer working off develop.
2015-12-23 10:15:03 -08:00
Andrew Schwartzmeyer b3a92e0ed3 Fix types and format files
Link to them instead so they don't get out of date. Explicitly fix the
incorrectly named file with an explicit link name. Also deploy the types
files with fixes to monad to fix shell output for various cmdlets.

Bumps monad submodule.
2015-12-22 17:03:14 -08:00
Andrew Schwartzmeyer bf8c5e35e7 Bumping monad 2015-12-22 14:29:07 -08:00
Andrew Schwartzmeyer 83e8f0c63c Bump monad-native submodule 2015-12-22 13:15:55 -08:00
Andrew Schwartzmeyer 489a951c5d Use System.Environment.NewLine in host 2015-12-22 12:18:51 -08:00
Andrew Schwartzmeyer 7cd8b1f3ee Use StringBuilder append instead of insert
For the special case of having a string to insert on the buffer, switch from calling this.Insert to appending the string directly (and incrementing the count appropriately).
2015-12-22 12:03:44 -08:00
Andrew Schwartzmeyer a2270ceb2d Change access-level of Run() from public to internal 2015-12-22 11:51:26 -08:00
Andrew Schwartzmeyer 290d29a6bb Remove deprecated Makefile 2015-12-22 11:44:31 -08:00
v-alexjo e8dc4d1e78 Bug fix for up arrow with history not indexing correctly 2015-12-22 10:19:14 -08:00
Andrew Schwartzmeyer 335835e20b Remove BOM from New-TimeSpan file 2015-12-22 10:05:07 -08:00
Zachary Folwick b1c12450df Added tests for Write-Debug, Write-Verbose, Write-Error cmdlets 2015-12-22 09:55:20 -08:00
Zachary Folwick ba7e0e8aa0 Added New-Timespan tests
- fixed whitespace and minor typos
- added tests to increase test coverage of function and test the output
- increased failure threshold to one hundredth of a second
2015-12-22 09:50:03 -08:00
v-alexjo 14ab620236 Improved tabcompletion logic for blank prompt and reset line after tab 2015-12-21 19:24:21 -08:00
Andrew Schwartzmeyer efccc92ea2 Remove Get-TypeData tests
Jason Shirk of the PowerShell team removed the dependency on
Types.ps1xml, so it was removed from our produce. Therefore this test is
now deprecated.
2015-12-21 19:20:17 -08:00
Andrew Schwartzmeyer 0c61e164de Add script to launch Pester tests 2015-12-21 19:17:48 -08:00
Andrew Schwartzmeyer 1de894813c Fix Start-Process Pester tests
These tests attempted to stop the test ping process by name, which was
fragile. Now they stop by PID, which is far less fragile.
2015-12-21 19:14:48 -08:00
Andrew Schwartzmeyer bc9baddfc1 Fix Wait-Event
After reading the docs, the prior test was incorrect as written, as by default, it will wait for any event. So to test the timeout, we needed to make it wait for an event that would enver come.
2015-12-21 17:14:12 -08:00
Andrew Schwartzmeyer 655ed50a36 Bump Pester submodule 2015-12-21 16:34:28 -08:00
Andrew Schwartzmeyer eabd6a41ba Deploy PowerShell.Utility modules
Odd that this caused only one test failure.
2015-12-21 13:41:30 -08:00
Andrew Schwartzmeyer 837f40bbee Fix Newtonsoft.Json Pester tests
Look for library in new location.
2015-12-21 13:00:47 -08:00
Andrew Schwartzmeyer 6c7301c22c Bring up RegOpenKeyExW stub
This works around the Get-ExecutionPolicy Pester test failure. It's not a good solution, but it's also (seemingly) not our code that is calling the extern function. This needs to be fixed in CoreFX itself.
2015-12-21 12:46:36 -08:00
Andrew Schwartzmeyer bbe61cf0b5 Bump monad-native with fixes 2015-12-21 10:25:25 -08:00
Andrew Schwartzmeyer 9738090faf Patch use of /tmp in Pester tests
More work needs to be done here, but this at least gets rid of the dependency on the TEMP environment variable.
2015-12-18 17:22:39 -08:00
Andrew Schwartzmeyer 7f4c755f5d Whitespace cleanup of readline
Sorry...
2015-12-18 16:30:24 -08:00
v-alexjo 785e63eb6f Up and down arrows now function similiarly to windows 2015-12-18 16:26:03 -08:00
v-alexjo b3d3245c99 Readline logic added to prevent out of index when history queue is null 2015-12-18 16:13:44 -08:00
v-alexjo 388022e02e Added downkey logic and improved up key logic for index errors 2015-12-18 16:13:44 -08:00
Andrew Schwartzmeyer 30a562123a Clean up Host's project.json 2015-12-18 16:11:36 -08:00
Andrew Schwartzmeyer 20adc986ae Make dotnet-cli link more explicit
Link to the anchor which links to their docs.
2015-12-18 16:11:07 -08:00
Paul Allen e08a7a0774 Bump OMI and provider submodules 2015-12-18 15:42:05 -08:00
Andrew Schwartzmeyer ef8e03dfdb Fix PowerShell remoting with dotnet-cli 2015-12-17 16:10:14 -08:00
Andrew Schwartzmeyer db49516dec Fix compiler warning 2015-12-17 16:09:09 -08:00
Andrew Schwartzmeyer 548cbc91b1 Bring back InitialSessionState() 2015-12-17 16:08:24 -08:00