Andrew Schwartzmeyer
aa273571db
Fix and improve Start-PSxUnit
...
* Last PR had a typo in "TestAruments" which caused the configuration
not to get picked up
* Now bails appropriately if PowerShell wasn't built, instead of
rebuilding it every time
* Passes `-verbose` to the xUnit runner, not dotnet, so we can see which
test failed
2016-06-01 11:15:09 -07:00
Andrew Schwartzmeyer
4d5e7daf28
Fix Start-PSxUnit
2016-05-31 16:06:19 -07:00
Andrew Schwartzmeyer
7736f0d9e0
Bump windows-build
2016-05-31 14:14:53 -07:00
Andrew Schwartzmeyer
b77b34164e
Update releasing notes for WiX
2016-05-27 16:33:49 -07:00
Andrew Schwartzmeyer
e76a61e137
Update TypeCatalogParser for CoreConsoleHost removal
2016-05-27 16:22:38 -07:00
Andrew Schwartzmeyer
2dcdc13dff
Remove references to CoreConsoleHost from docs
...
The `src/powershell` project is the new host.
2016-05-27 16:20:52 -07:00
Andrew Schwartzmeyer
0d172cb562
Revert CoreConsoleHost changes made to SMA
2016-05-27 16:16:34 -07:00
Andrew Schwartzmeyer
20f103b0d4
Revert EndProcessing to original code
...
This appears to have been changed in a bad merge. Now these changes are
exactly as in source-depot at [SD:706766].
2016-05-27 11:52:31 -07:00
Andrew Schwartzmeyer
05fc323762
Fix Remove-TypeData runspace isolation
...
Responding to PR review.
2016-05-26 10:36:22 -07:00
Andrew Schwartzmeyer
d811fe37ea
Port ConsoleHost break handler to System.Console
2016-05-25 15:31:25 -07:00
Andy Schwartzmeyer
a6c04a5bd3
Redirect WIX native output to Write-Verbose
2016-05-24 15:02:24 -07:00
Andy Schwartzmeyer
b1436e991e
Remove MMI from Publish-NuGetFeed
...
This project was removed and provided as a package in the windows-build
submodule. The artifact uploading to AppVeyor fails because this was not
updated.
2016-05-24 14:57:05 -07:00
Andy Schwartzmeyer
44d92a297a
Create MSI packages on AppVeyor
2016-05-24 14:49:03 -07:00
Andy Schwartzmeyer
0afc56d5d4
Ignore executables
2016-05-24 14:46:41 -07:00
Andy Schwartzmeyer
c5a81c2e6e
Guard Remove-Item in Create-MSIPackage
2016-05-24 14:46:40 -07:00
Andy Schwartzmeyer
691618d335
Return path to built package in Start-PSBuild
...
For Windows only right now.
2016-05-24 14:46:40 -07:00
Andy Schwartzmeyer
b4ed5e2534
Call Create-MSIPackage from Start-PSBuild
2016-05-24 14:46:39 -07:00
Andrew Schwartzmeyer
704aaa8057
Add FAQ about Travis CI failures from forks
2016-05-24 12:04:32 -07:00
Andrew Schwartzmeyer
f13f5afd23
Isolate Remove-TypeData tests with runspace
2016-05-24 11:51:58 -07:00
Andrew Schwartzmeyer
1365c2b336
Bump windows-build with MMI package
2016-05-23 10:54:08 -07:00
Andrew Schwartzmeyer
b1c1cd70e1
Remove MMI project
2016-05-23 10:48:31 -07:00
Andrew Schwartzmeyer
d54b0fa4ce
Remove MMI files from mapping.json
2016-05-23 10:39:44 -07:00
Andrew Schwartzmeyer
154166f458
Add FAQ about windows-build/nuget-feed being empty
...
And then causing `dotnet restore` to fail.
2016-05-20 16:33:19 -07:00
Andrew Schwartzmeyer
4f8e30c10e
Update xUnit tests to depend on powershell project
2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
29ec5f27b9
Run xUnit tests verbosely
2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
dcaf231bde
Update dotnet-test-xunit package
2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
5349900c3b
Use get-command instead of get-process in xUnit
2016-05-20 15:17:12 -07:00
Andrew Schwartzmeyer
675c6df19d
Add SecureString known issue
2016-05-19 15:23:00 -07:00
Andrew Schwartzmeyer
6c38dc4fb3
Bump Eventing's SecureString version dependency
2016-05-19 15:18:48 -07:00
Andrew Schwartzmeyer
5b61acd28d
Bump System.Security.SecureString version to 4.0.0
2016-05-19 15:18:32 -07:00
Andrew Schwartzmeyer
8b6bcabdaf
Skip slow tests in Start-PSPester
...
This will skip them for Linux and OS X (which are currently slower than
AppVeyor).
2016-05-19 14:30:55 -07:00
Andrew Schwartzmeyer
0702407f65
Mark SendGreeting module tests as slow
2016-05-19 14:28:50 -07:00
Andrew Schwartzmeyer
1e24e76200
Mark ConsoleHost tests as slow
2016-05-19 14:28:43 -07:00
Andrew Schwartzmeyer
a423ca5d99
Add jobs known issue
2016-05-19 14:18:24 -07:00
Andrew Schwartzmeyer
ccb451ce19
Refactor to get latest asset ID using API
2016-05-19 13:36:26 -07:00
Andrew Schwartzmeyer
ee582d42d5
Add regression test for CallDepthOverflow
2016-05-19 10:48:02 -07:00
Andrew Schwartzmeyer
3d18f454f6
Temporarily disable xUnit tests
2016-05-18 20:03:57 -07:00
Andrew Schwartzmeyer
feded5d979
Import build.psm1 on Travis
...
`ag` ignored the `.travis.yml` when this change was made.
2016-05-18 19:48:28 -07:00
Andy Schwartzmeyer
5bdb215034
Don't compile GetComputerInfoCommand.cs
2016-05-18 17:47:25 -07:00
Andrew Schwartzmeyer
056effc129
Remove system profile
2016-05-18 17:26:10 -07:00
Andy Schwartzmeyer
04c4f5c97b
Update mapping.json for SD:704605
2016-05-18 17:21:42 -07:00
Andy Schwartzmeyer
4f9c7d92ca
Update mapping.json for OneGet files
...
This purposefully does not include test files, which is out of my scope.
2016-05-18 15:31:48 -07:00
Andy Schwartzmeyer
c5560957f4
Ignore Packages and src/monad
...
The former is the NuGet package location on Windows, and the latter is
used for copying from the old submodule.
2016-05-18 15:10:41 -07:00
Andrew Schwartzmeyer
811f052ae9
Improve error message of Start-NativeExecution
2016-05-18 14:53:21 -07:00
Andrew Schwartzmeyer
730c8f04fe
Use -noprofile in build.sh
2016-05-18 14:25:17 -07:00
Andrew Schwartzmeyer
fcf4b38370
Rename PowerShellGitHubDev.psm1 to build.psm1
2016-05-18 13:58:59 -07:00
Andrew Schwartzmeyer
60f6e05017
Add non-interactive console known issue
2016-05-18 10:50:00 -07:00
Andrew Schwartzmeyer
e2f4b16c2f
Add team coordination link to internal docs
2016-05-18 10:47:13 -07:00
Andrew Schwartzmeyer
e140e215bb
Add aliases known issue
2016-05-18 10:43:16 -07:00
Andrew Schwartzmeyer
1381140f6e
Add sessions known issue
2016-05-18 10:36:52 -07:00
Andrew Schwartzmeyer
f75b39e5cd
PSRP known issues removed
...
Since it was decoupled from this repo.
2016-05-18 10:21:28 -07:00
Andrew Schwartzmeyer
ac55b037ae
Eventing known issue is fixed
2016-05-18 10:16:08 -07:00
Andrew Schwartzmeyer
d1f6adb0a3
MMIN known issue is fixed
2016-05-18 10:14:17 -07:00
Andrew Schwartzmeyer
1aa6a4904b
Update Linux installation documentation
2016-05-18 10:10:25 -07:00
Andrew Schwartzmeyer
7675de8d74
Link Pester readme to Pester Do and Don't
2016-05-18 10:08:05 -07:00
Andrew Schwartzmeyer
2d1b99d82e
Fix docs/Testing capitalization
2016-05-18 10:04:47 -07:00
Andrew Schwartzmeyer
64efb9d799
Fix ReadLineWithTabCompletion port
...
Revert change made within the function since the function itself is
compiled out for the portable version of PowerShell.
2016-05-17 13:47:47 -07:00
Andrew Schwartzmeyer
b67d765b3a
Use WrapSize for WindowSize when unavailable
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7afe9aa60f
Say that the portable UI supports virtual terminal
...
Which is most likely true.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
772ecb8f8e
Rename OPEN flag to PORTABLE
...
Makes more sense.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7e65fa448e
Mark as pending Travis CI OS X failing tests
...
These tests *do not* fail locally, nor on the Linux test runner. They do
not fail when accessing the OS X runner under debug mode. The *only*
cause is the lack of a TTY on the OS X runner, which is a Travis CI
regression. Moreover, the formatting tests do not fail when the TTY is
removed locally.
These absolutely should be fixed at some point, but it is not worth
spending any more time on it.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
44028f0da3
Fix formatting and output when stdout is redirected
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
fa86c89925
Enable pre and post write in WriteToConsole
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
800fa4ca18
Remove env key from OS X build
...
`Start-PSBootstrap` takes care of this.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
d1c2a2c896
Disable Set-PSDebug tests on AppVeyor
...
These pass locally, just not with AppVeyor's host.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
2712cead34
Use Pending for tests that shouldn't be Skipped
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
fe5328006d
Fix Import-Alias tests
2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
2fdf48165a
Clean up Set-PSDebug tests
2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
6cd7804fb0
Mark redirected input test as pending on Windows
...
While this passes on Linux, it does not pass on Windows, indicating a
platform-specific bug in .NET Core.
2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
fbc794b933
Guard BufferSize for improper terminals
2016-05-17 13:28:44 -07:00
Andy Schwartzmeyer
86e8673826
Don't build more unused code
...
This code is all used for reading secure strings, which we don't yet
support.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
0dc549ecac
Use -noninteractive on AppVeyor
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
6d7b6a10f6
Skip complex prompting tests
...
Not supported with non-PSReadLine Open PowerShell host.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
aa8dc7c901
Use -noprofile on AppVeyor
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
e387961c31
Add -noprofile to Start-PSPester
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7f491beabb
Fix AppVeyor to use Get-PSOutput
...
Instead of hard-coded paths.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
c3eaf9a77e
Mark as pending tests not working with ConsoleHost
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
eee564e465
Delete deprecated CoreConsoleHost project
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
97ea9308fb
Add readme to src/powershell
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
6d3c42a0b0
Migrate profile
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
1a61837c07
Migrate CoreConsoleHost/Modules
...
And update mapping.json
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
630eb69c7c
Add managed entrance for powershell project
...
The powershell project's `Main` function initializes the custom
`AssemblyLoadContext` and then delegates to `UnmanagedPSEntry.Start`.
This lets us undo several changes to the `ConsoleHost` managed
entry (notably, the `Start` function signature does not have to change,
thus the `consoleFilePath` variable still exists).
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
a1a722c4a1
Add powershell project shim
...
The `src/powershell` project builds Core PowerShell as a .NET CLI app,
with a dependency on `Microsoft.PowerShell.ConsoleHost`, so that the
latter can remain a library.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7f9052c1c6
Remove platform tests
...
This is pointless to test as the .NET Code better be correct, or we have
worse problems.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7c80035d35
Skip xUnit tests not yet ported to OS X
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
0012fa90d6
Remove deprecated Listener tests
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
4234b3db73
Remove CoreConsoleHost from xUnit tests
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
fc9aa4cd88
Make ConsoleHost internals visible to powershell-tests
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
658f3e0d48
Update xUnit project to use ConsoleHost
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
5c0d17e3a2
Update ConsoleHost tests
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
dca17ac0f7
Migrate ConsoleHost tests
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
d8b2d1fb0e
Fix command-line parser to support --parameters
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
c4bfc52c76
Migrate ConsoleHost .gitignore
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
849ea50ab7
Load PSReadLine by correct name
...
Linux is case-sensitive, so the modules are too.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
78dd93c1ac
Build PSReadLine for ConsoleHost
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
2e71a090e7
Use ~/.powershell for ConsoleHost profile on Linux
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
8af7d5f344
Guard use of ConsoleControl in ConsoleHostRawUserInterface
...
This uses the RawUserInterface implementation from the original
CoreConsoleHost.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
02e9f100d2
Guard use of ConsoleControl in ConsoleHostUserInterface
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
702082f597
Guard use of ConsoleControl in ConsoleHost
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
3cd0d75278
Don't build ConsoleControl
2016-05-17 13:28:44 -07:00