Commit graph

1129 commits

Author SHA1 Message Date
Andrew Schwartzmeyer b05325f6a9 Move OMI submodule to GitHub
Updated .gitmodules for new location of OMI and new working branch.

This requires running `git submodule sync`.
2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer e6cfea5b2d Bump monad-omi-provider submodule with moved host
The monad-native submodule no longer owns a native host whatsoever, with it moved to the provider, and the provider's build system refactored to use CMake.

Because CMake is way better, even for dealing with OMI.
2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer 0c5c33f25e Bump monad-native submodule with removal of host 2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer 8ca4fdb7fd Remove stty echo workaround
Note that the run script is now entirely deprecated, since the host can be run directly.
2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer 0c4d642ac7 Remove deprecated patch script
Patching System.Console manually is no longer required.
2016-01-12 12:22:26 -08:00
Andrew Schwartzmeyer e26b55c3d9 Use Window(Width|Height) instead of Buffer
The former is available, the latter is not. For our simple case of a
readline-esque shell on Linux, they seem equivalent. This removes the
import of libpsnative and the native calls to get terminal width/height.
2016-01-12 12:22:26 -08:00
Andrew Schwartzmeyer 735721e902 Bump .NET packages to build rc2-23712
This brings in the previously missing System.Console APIs and the fix for the echo TTY issue, fixing our remaining patches of the runtime.
2016-01-12 12:22:26 -08:00
Andrew Schwartzmeyer a9b7928d40 Add logging to PSRP script 2016-01-12 12:22:26 -08:00
Andrew Schwartzmeyer ca4dd87235 Fix indentation and build warning 2016-01-07 17:07:28 -08:00
Andrew Schwartzmeyer d89b6ade92 Merge branch 'dev/nixreadline' 2016-01-06 16:54:51 -08:00
Andrew Schwartzmeyer b270c03f50 Fix location of MOFs in DSC tests 2016-01-06 15:44:53 -08:00
Zachary Folwick a2c7b13405 Fix ConvertTo-Csv tests
Assert that this cmdlet uses collections internally, which does not rely
on order.
2016-01-06 12:57:14 -08:00
Andrew Schwartzmeyer be61a6449b Merge branch 'dev/cross-platform-pester' 2016-01-06 12:54:57 -08:00
v-alexjo 939d03e03d Removing Console.Writelines for debugging and modifying bounds chekcing 2016-01-06 10:44:57 -08:00
v-alexjo 1ffaf2d5b7 Fix for tab completion indexing with backspace 2016-01-06 10:44:57 -08:00
v-alexjo f595b34374 Fixed tabcompletion index issue with buffer ending in whitespace 2016-01-06 10:44:57 -08:00
George Fleming ed59522056 Add new pester test to clean up created file 2016-01-06 10:14:17 -08:00
George Fleming 6a40891df2 Rename cmdlets 2016-01-05 15:16:10 -08:00
George Fleming ef6f5d06e5 Adding Get-DscConfiguration, and Get/Set-DscLocalConfiguration cmdlets 2016-01-05 12:03:22 -08:00
George Fleming b21977bcce Enumerate WriteObject output 2016-01-04 10:28:18 -08:00
George Fleming 401abdc7e8 New pester test for Start-DscConfiguration 2016-01-04 10:27:43 -08:00
George Fleming 67b53068e1 Clean up code 2015-12-31 11:22:15 -08:00
George Fleming 07c4bec698 Refactor some code 2015-12-31 11:13:15 -08:00
George Fleming 4de201e318 process xml output 2015-12-30 16:14:05 -08:00
Andrew Schwartzmeyer 576884ed0c Fix third party library loading in JSON tests
Since we no longer have CORE_ROOT defined, but do have
AppContext.BaseDirectory from .NET
2015-12-30 10:46:54 -08:00
Zachary Folwick a6d5b17c73 corrected Split-Path tests 2015-12-29 09:49:46 -08:00
George Fleming e8eaf86830 New Start-DscConfiguration cmdlet 2015-12-28 16:23:09 -08:00
Zachary Folwick 1a2b29b4d1 fixed cross-platform support 2015-12-28 15:59:55 -08:00
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