Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 5442346820 Update Get/Set-ExecutionPolicy tests
Test expected behaviors on both Windows and Linux.
2016-02-09 16:10:10 -08:00
Andrew Schwartzmeyer 4d9c7303b9 Bump monad with changes to ExecutionPolicy 2016-02-09 16:10:10 -08:00
Andrew Schwartzmeyer 426e70565a Clean up .gitignore files 2016-02-09 14:06:39 -08:00
Andrew Schwartzmeyer 9c0ee7072e Use NuGet instead of aspnetvnext for CodeAnalysis
The aspnetvnext MyGet feed was unreliable, and we should prefer NuGet
anyway. This should make automated builds fail less often.
2016-02-09 12:50:24 -08:00
Andrew Schwartzmeyer 65ccb3f49d Bump monad submodule with ClrFacade.Load refactor 2016-02-08 15:25:10 -08:00
Andrew Schwartzmeyer a694ab7770 Bump monad with merge from Source Depot 2016-02-08 14:00:55 -08:00
Andrew Schwartzmeyer 363c0ccfd1 Modernize our nuget.config
Use the V3 api, and use the clear directive instead of
`activePackageSources`.
2016-02-05 16:04:06 -08:00
Andrew Schwartzmeyer e0d81406d1 Update FullCLR ConsoleHost dependencies
Such that only one publish command is required.
2016-02-05 12:12:33 -08:00
Andrew Schwartzmeyer 89ad38beae Guard prompt function
Fixes #485.
2016-02-05 11:51:17 -08:00
Andrew Schwartzmeyer 39183cb4c3 Remove versions from frameworkAssemblies
This should fix bug #499 where building complains about a restore not
having been done, even when it has.
2016-02-05 11:13:09 -08:00
Andrew Schwartzmeyer def81cf9cc Update readme
- New links due to rename
- Better formatting
- More details
2016-02-05 10:18:23 -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 17a50a9f91 Remove temporary dotnet-publish workaround
Latest dotnet-nightly packages have not required this.
2016-02-03 15:21:29 -08:00
Andrew Schwartzmeyer 89d62012e8 Set Pester error threshold to 0 2016-02-03 14:13:38 -08:00
Andrew Schwartzmeyer f42cf5985f Fix guard in MMI's AssemblyInfo 2016-02-03 11:03:13 -08:00
Andrew Schwartzmeyer 3d4509bef0 Add AppVeyor notifications to PSCore Slack #ci channel 2016-02-02 20:09:37 -08:00
Andrew Schwartzmeyer bea156b61c Move Travis CI notifications to PSCore Slack #ci channel 2016-02-02 19:57:04 -08:00
Andrew Schwartzmeyer a4fd57298d Revert "Skip BufferSize when not interactive"
This reverts commit 9a5c010f54.
2016-02-02 17:05:49 -08:00
Andrew Schwartzmeyer d31647f52c Bump monad submodule with use of NOETW 2016-02-02 16:48:03 -08:00
Andrew Schwartzmeyer 9cfe821bc2 Add NOETW preprocessor definition to Automation
This is necessary to disable Tracing on Core PowerShell until the
reimplementation of the Eventing library is ported to CLI.
2016-02-02 16:46:51 -08:00
Andrew Schwartzmeyer f1dc37bb37 Bump monad and windows-build submodules 2016-02-02 16:14:13 -08:00
Andrew Schwartzmeyer 801b347e5a Add ImplicitRemotingCommands and WebCmdlet to known issues 2016-02-02 16:14:13 -08:00
Andrew Schwartzmeyer 3cfa68caa0 Remove executable bit from build.ps1 2016-02-02 16:11:37 -08:00
Andrew Schwartzmeyer ef1c718782 Use --configuration Linux for CorePS build 2016-02-02 16:11:36 -08:00
Andrew Schwartzmeyer 75eba6fe88 Remove Computer.cs from Commands.Management 2016-02-02 16:11:36 -08:00
Andrew Schwartzmeyer c8351063ef Add file superset to Utility and Automation
To enable building on both Core and Full CLR with the same project.json
files, the superset of file dependencies for both builds must be
included. The set differences are applied by `CORECLR` preprocessor
guards around the files themselves.

The file name cases were corrected for case-sensitive filesystems.
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer bd79884b81 Update AssemblyInfo files for FullCLR build 2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer 989b59c089 Add Microsoft.PowerShell.ConsoleHost
For the Windows console.
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer 92127e4cfc Uses spaces instead of tabs in project.json files 2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer 172ddc6ad1 Refactor project.json dependencies
The packages are now dependencies of the `dnxcore50` framework itself,
rather than globally. The `compilationOptions` were pruned, with
`CORECLR` moved to frameworks, `_CORECLR` removed for all but
`Management.Infrastructure`, and `LINUX` moved to a new `Linux`
configuration, used only in `build.sh`. This configuration is
purposefully absent from libraries that do not use `LINUX`, so that it
is not relied upon without strong consideration. The dependencies
were pruned to reduce duplication.
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer 3e1cdb7582 Decrease failed test threshold to 11
The updated packages fix our Start/Stop process tests, which were
failing intermittently due to the process name appearing incorrect.

See dotnet/corefx#5421 for further details.
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer c7fb9d2158 Add System.Diagnostics.Process dependency
The new packages do not pull this in automatically.
2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer a8be633089 Bump packages to rc3-23729 2016-02-02 15:43:54 -08:00
Andrew Schwartzmeyer c162c1c19e Title case ExecuteHelper function 2016-02-01 13:12:29 -08:00
Andrew Schwartzmeyer ad064bf483 Use --noprofile for Pester tests 2016-02-01 13:12:29 -08:00
Andrew Schwartzmeyer bbadc64407 Add --noprofile option to host
Disables parsing of all profiles when used.
2016-02-01 13:12:29 -08:00
Andrew Schwartzmeyer 92b5d40f76 Bump monad submodule 2016-01-29 17:25:00 -08:00
Andrew Schwartzmeyer 3f1a1311fe Add missing cmdlets/modules to known issues 2016-01-29 17:24:49 -08:00
Andrew Schwartzmeyer 52a7095056 Use Modules instead of SnapIns
Proper deployment of the Modules we support allowed me to remove my
work-arounds using the deprecated SnapIn system to load all PowerShell
libraries via Modules.

I still don't like that this is done in build scripts, but we need
better asset support from .NET CLI to change how this is done.

PowerShell.Utility now deploys the CoreClr manifest, so unsupported
commands don't show up erroneously.
2016-01-29 17:24:49 -08:00
Andrew Schwartzmeyer fd782abe99 Make dotnet-nightly workaround version-agnostic
If the `Debug/dnxcore50` path does not exist, don't worry about it.
2016-01-29 17:24:49 -08:00
Andrew Schwartzmeyer 188598e4ca Temporarily fix build scripts due to CLI bug
Latest versions of .NET CLI ignore --output and instead publish to a
long path inside of it. Until this is resolved properly, we can work
around it by copying to the expected location.

Revert this when CLI is fixed.
2016-01-28 18:38:57 -08:00
Andrew Schwartzmeyer 6f6239aa60 Bump monad and windows-build submodules 2016-01-26 17:00:13 -08:00
Andrew Schwartzmeyer 71f670f86c Add packages required for updated sources
Commands.Utility now needs Microsoft.CodeAnalysis.CSharp, which doesn't
explicitly target `dnxcore50`, so now Commands.Utility and the packages
which depend on it now much `import` the Portable Windows framework.
This also required adding the aspnetvnext feed.

System.Management.Automation now requires System.Diagnostics.StackTrace.
2016-01-26 16:49:28 -08:00
Andrew Schwartzmeyer e125650e54 Update mapped compileFiles
Removed CorePsPlatform.cs from the build mapping so that I could perform
it before merging.

Note that SMA by default now builds with a bunch of tracing files for
ETW, which cannot be compiled on Linux and must be hand-removed from the
windows-build auto-generated compileFiles output.
2016-01-26 16:43:02 -08:00
Andrew Schwartzmeyer 05205ecac7 Realign project.json files 2016-01-26 15:47:22 -08:00
Andrew Schwartzmeyer d73d51cd70 Link Waffle.io scrum board in readme
Add note to skip CI tests for documentation changes.

[ci skip]
2016-01-25 10:38:35 -08:00
Andrew Schwartzmeyer 0bdd2e4182 Enable Travis CI
- Add badge to readme
- Use language 'cpp' because 'csharp' would bring in Mono
- Set to Trusty Tahr (Ubuntu 14.04)
- Only clone necessary submodules
- Use SSH for powershell-ci user access
- Install dotnet-cli
- Build PowerShell
- Run Pester tests
2016-01-22 14:33:34 -08:00
Andrew Schwartzmeyer cd81479b87 Add test failure threshold to pester.sh
Set to 14 because of non-tty and random process failures.
2016-01-22 14:32:04 -08:00
Andrew Schwartzmeyer 7061c87eb2 Move more Git notes to CONTRIBUTING.md 2016-01-21 13:06:51 -08:00
Andrew Schwartzmeyer 423e7da910 Add link to known issues 2016-01-20 12:33:42 -08:00
Andrew Schwartzmeyer 0dda6c34a1 More readme updates 2016-01-20 12:29:06 -08:00
Andrew Schwartzmeyer 0cdbe9a3aa Bump dsc submodule because of upstream rewrite 2016-01-20 11:47:39 -08:00
Andrew Schwartzmeyer c61f649e10 Bump libpsl-native and windows-build submodules
With new readmes.
2016-01-20 11:34:35 -08:00
Andrew Schwartzmeyer 395300ff20 Create contributing file and update readme 2016-01-20 11:33:57 -08:00
Andrew Schwartzmeyer b9e2d3f446 Update OMI submodule's remote URL
OMI was transferred to the Microsoft organization, with read access for all FTEs.
2016-01-20 10:51:00 -08:00
Andrew Schwartzmeyer b451d02c5a Update profile banner 2016-01-20 10:26:13 -08:00
Andrew Schwartzmeyer ae9c58e3e3 Remove xUnit reference from csharp/project.json
Currently fails to restore, working on prototype.
2016-01-20 10:14:44 -08:00
Andrew Schwartzmeyer 4d8d738dd7 Bump monad submodule for Windows support 2016-01-19 12:56:56 -08:00
Andrew Schwartzmeyer 7c6aac1565 Update readme for cross-platform support 2016-01-19 12:56:56 -08:00
Andrew Schwartzmeyer 46f0631f64 Add build.ps1 for Windows 2016-01-19 12:56:56 -08:00
Andrew Schwartzmeyer 092feeef9a Emit powershell executable
Instead of Microsoft.PowerShell.Linux.Host

Since this changes the name of the library,
System.Management.Automation's assembly info needed to be updated.
2016-01-19 12:56:56 -08:00
Andrew Schwartzmeyer e4ad1d6603 Reindent and strip whitespace in host 2016-01-15 16:46:39 -08:00
Andrew Schwartzmeyer f8ef219186 Clean up PSL_profile.ps1
Remove unneeded cruft and use here-string.
2016-01-15 16:41:05 -08:00
Andrew Schwartzmeyer 08c7d801f8 Execute profile commands with out-default
So functions called in profile can write to the screen without any
workarounds.
2016-01-15 15:39:42 -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 056d6ba5a8 Update readme for GitHub 2016-01-15 11:58:34 -08:00
Andrew Schwartzmeyer 3042c6c8e5 Sort .gitmodules 2016-01-14 17:15:26 -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
Andrew Schwartzmeyer ec08d9f46c Move Pester test/Pester and push to GitHub 2016-01-14 16:17:50 -08:00
Andrew Schwartzmeyer a36329e355 Bump DSC with fixes 2016-01-14 14:58:18 -08:00
Andrew Schwartzmeyer 953afd841e Move OMI PSRP provider to GitHub
Remove the `monad` prefix from its name.
2016-01-14 14:54:27 -08:00
Andrew Schwartzmeyer 19d8a6a0b2 Move monad-build to windows-build on GitHub
Better name since this submodule only has to do with the Windows build
system and generated artifacts.
2016-01-14 12:55:39 -08:00
Andrew Schwartzmeyer 895fbb8d40 Move monad to psl-monad on GitHub
- Removed more pre-processor conditionals
- Loads libpsl-native
- Pruned wmi (rewrote history)

The wmi folder was massive, and we did not need 99% of it, so a `git
filter-branch --tree-filter` was performed to remove all but the single
necessary subdirectory before pushing to GitHub.

The psl-monad repository can no longer be updated from the existing
GitSD sync. When the PSW teams have a Git repo for the monad codebase,
we will apply our patches to it and delete this fork.
2016-01-14 10:34:13 -08:00
Andrew Schwartzmeyer ae033a5846 Move monad-native to libpsl-native on GitHub 2016-01-14 10:32:02 -08:00
Andrew Schwartzmeyer b89766a2f0 Merge branch 'dev/start-dsc' 2016-01-12 17:38:21 -08:00
Andrew Schwartzmeyer e732e15ba4 Bump Newtonsoft.Json to 8.0.2 2016-01-12 12:31:17 -08:00
Andrew Schwartzmeyer 864d9bec01 Update readme 2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer ec49e37de6 Add DSC submodule from GitHub 2016-01-12 12:25:25 -08:00
Andrew Schwartzmeyer ad637c3548 Bump OMI submodule with test fixes 2016-01-12 12:25:25 -08:00
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
Andrew Schwartzmeyer be61a6449b Merge branch 'dev/cross-platform-pester' 2016-01-06 12:54:57 -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
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