Andrew Schwartzmeyer
8d23dad0ab
Add Read-Host regression test
2016-07-08 13:48:51 -07:00
Andrew Schwartzmeyer
9a7199b05b
Enable Invoke-Item test for Windows
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
09f20879b8
Guard use of UseShellExecute in PackageManagement
...
To re-enable elevation, the process will need to fork. For now, don't
fail fatally.
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
ef2ba40ca7
Use start in Invoke-Item to open items on Windows
...
Since `UseShellExecute` cannot be used.
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
afc1d8a459
Use start in Get-Help -Online to open URL on Windows
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
ce2e5d6492
Set UseShellExecute to false in Get-Help
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
19a4f4faf5
Fix IsUbuntu logic in build module
...
I previously broke the automatic uninstallation logic by changing how I
identified the Linux distribution.
2016-06-30 13:41:43 -07:00
Andrew Schwartzmeyer
2e927d8155
Disable xUnit tests
...
This is temporary. We need to rewrite the test context to ensure the
AssemblyLoadContext is used properly, since the default can no longer be
initialized.
2016-06-28 20:08:11 -07:00
Andrew Schwartzmeyer
4086644de7
Disable JIT cache tests
...
This test fails since we've disabled the JIT cache entirely.
2016-06-28 20:08:11 -07:00
Andrew Schwartzmeyer
2360d1ef46
Filter runtime assemblies out of custom context
2016-06-28 19:19:55 -07:00
Andrew Schwartzmeyer
5a29df50f1
Re-enable assembly load handler in CompletionCompleters
2016-06-28 18:31:38 -07:00
Andrew Schwartzmeyer
5e3150f429
Use Start-TypeGen to generate type catalog dynamically
2016-06-28 12:57:44 -07:00
Andrew Schwartzmeyer
36df477c01
Update type catalog without MMI
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
5744ca7b80
Exclude MMI packages from type catalog parser
...
Newtonsoft.Json will be excluded at a later date.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
a3a0bb9a62
Add NETStandard.Library to CoreCLR.Eventing
...
As a bottom-level dependency, it always needed it. The alternative is
hunting down every particular dependency, but that's what the
meta-package is useful for.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
2f892e8127
Use Marshal.ZeroFreeCoTaskMemUnicode
...
This removes the ClrFacade function of the same name as this API is in
.NET Core 1.0 Marhsal class, not SecureStringMarshal.
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
8be714ff68
Update CorePsTypeCatalog for new packages
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
db60a859cf
Remove MyGet feeds
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
2f303f3822
Use dotnet-test-xunit package from NuGet
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
bf6b5be10d
Use Microsoft.DotNet packages available on NuGet
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
d2aef87029
Depend on SecureString 4.0.0
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
f21618f119
Remove SecureString stub project
2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
97df59f553
Re-enable checking of assemblies with strong names
...
This removes the `UsesCodeSignedAssemblies()` switch in `CorePsPlatform`
and reverts the work-arounds skipping strong name checking.
2016-06-27 14:49:46 -07:00
Andrew Schwartzmeyer
f8e0c1a49e
Change preview channel to rel-1.0.0
...
Recent CLI commits have changed the channel from which to download.
2016-06-23 13:23:03 -07:00
Andrew Schwartzmeyer
36d982f7f5
Detect DEB and RPM package types
...
Instead of assuming DEB for Linux.
2016-06-20 13:03:54 -07:00
Andrew Schwartzmeyer
0cdc7cfc7e
Use COMPILE_FLAGS instead of add_compile_options
...
The latter came with CMake 2.8.12, and CentOS comes with 2.8.11, so we
need to use a more compatible method. Also bump the minimum required
version now that it is properly known.
2016-06-20 12:44:55 -07:00
Andrew Schwartzmeyer
01b1b13344
Install gcc-c++ instead of just gcc on CentOS
2016-06-20 12:16:14 -07:00
Andrew Schwartzmeyer
bedcff49f6
Use VERSION_ID instead of Version from /etc/os-release
...
They are different fields and VERSION_ID is just the number.
2016-06-20 12:13:22 -07:00
Andrew Schwartzmeyer
f3070bf28b
Install curl during bootstrap
...
Since the LLVM feed is no longer added, we do not need to update nor
require curl beforehand, nor install wget.
2016-06-20 12:12:21 -07:00
Andrew Schwartzmeyer
30dadb8dae
Use -match instead of -eq
...
Since the use of quotes in /etc/os-release is inconsistent across
distributions, we have to match instead of exactly compare.
2016-06-20 12:08:08 -07:00
Andrew Schwartzmeyer
511936606e
Add Find-Dotnet to make build module smarter
...
New function smartly adds the probable location of the .NET CLI tools to
the path if `dotnet` is not found. If it is still not found, it restores
the path. All functions using `dotnet` should call `Find-Dotnet` first.
2016-06-20 11:59:14 -07:00
Andrew Schwartzmeyer
42d1d05d85
Support CentOS 7 in build module
2016-06-20 11:39:39 -07:00
Andrew Schwartzmeyer
b19be8c911
Fix CentOS RID in tests and build module
2016-06-16 18:39:29 -07:00
Andrew Schwartzmeyer
acf76231e5
Update readme for Windows releases
2016-06-16 17:18:43 -07:00
Andrew Schwartzmeyer
970f7e25a0
Add basic Windows package install instructions
2016-06-16 16:38:57 -07:00
Andrew Schwartzmeyer
b4a75b4654
Bump package version in Linux install docs
2016-06-16 16:30:10 -07:00
Andrew Schwartzmeyer
ef79e12245
Bump windows build with new MMI/MMIN packages
2016-06-16 15:48:19 -07:00
Andrew Schwartzmeyer
10f2d48f60
Use CentOS 7, not 7.1 RID
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer
9375b1f303
Downgrade packages to build 24027
...
This is the ancient build that Nano uses.
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer
8e7c2ca30b
Sign all assemblies with key
2016-06-16 15:48:18 -07:00
Andrew Schwartzmeyer
b8f88e75c4
Remove LLVM feed
...
The feed was switched off due to excess load.
2016-06-16 11:00:47 -07:00
Andrew Schwartzmeyer
38c2ba294a
Unpin .NET CLI package
...
Use latest until further notice.
2016-06-16 10:55:11 -07:00
Andrew Schwartzmeyer
d2cb5610e1
Resurrect ArchitectureSensitiveAttribute
...
Removal was backed out in SD:712734
2016-06-15 18:02:03 -07:00
Andrew Schwartzmeyer
f83d375f26
Fix casing again
2016-06-15 15:58:45 -07:00
Andrew Schwartzmeyer
2afe0a1ad3
Update SD file mappings
...
The `ConsoleTextWriter.cs` file had a case-sensitivity issue. The
`ArchitectureSensitiveAttribute.cs` and `nativemsh` files were deleted
in SD.
2016-06-15 15:45:12 -07:00
Andrew Schwartzmeyer
2192c31a64
Fix use of aliases in build.psm1
...
Also use git-dir to make Copy-MappedFiles location agnostic.
2016-06-15 13:56:29 -07:00
Andrew Schwartzmeyer
7d1ce65079
Mark tests as pending on Travis's OS X and on Windows
...
Because redirected `stdin` does not yet work on Windows, and because any
output based test does not yet work on OS X on Travis (where this is no
TTY), we cannot yet run these tests on those platforms.
2016-06-15 12:36:17 -07:00
Andrew Schwartzmeyer
0232f160ec
Add backward slash in filename as known issue
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
af258919b7
Add tests for hierarchical paths
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
b30aabc12b
Revert string comparison changes
...
These comparisons did not need to be changed as the input path is not
modified. The normalized relate path created from the stack (if this
code path is taken) is created with the correct path separators.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
d162437b7b
Remove string literals in registry provider
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
3262a4b3ec
Fix GetDriveQualifiedPath for single root filesystems
...
Reverted to original code and fixed correctly.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
3464f9aee3
Fix ExpandMshGlobPath for single root filesystems
...
Reverted to original code and fixed correctly.
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
ee40426fb3
Fix path root comparisons for Linux
...
Assuming the path may not be normalized, to make PowerShell slash
agnostic in a filesystem whose "drive" is a '/' and a 'C:\', we need to
compare to both '/' and '\' for users of PowerShell's alternate path
separator on Linux ('\').
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
a8f93c3c64
Fix the alternate path separator for Linux
...
Because normalization of paths occurs through the location globber and
filesystem provider by way of `path.Replace(alternate, default)`,
changing the alternate path separator on Linux to be '\' instead of
.NET's '/' let's PowerShell be "slash agnostic."
2016-06-15 12:16:54 -07:00
Andrew Schwartzmeyer
4b3b48adec
Remove resgen artifacts
...
This has been deprecated by building these files on the fly using a
template in PowerShell, instead of using the resgen Windows-only binary.
2016-06-15 11:20:19 -07:00
Andrew Schwartzmeyer
d16cfbd04f
Work-around dotnet bug
...
The include must be duplicated because the root `buildOptions` is not
being applied "whenever compiling the project."
2016-06-14 16:21:36 -07:00
Andrew Schwartzmeyer
01f1c5348d
Exclude FullCLR files from CoreCLR build
2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer
047525aa9d
Revert unnecessary changes
2016-06-14 16:21:17 -07:00
Andrew Schwartzmeyer
69ce0e7107
Revert CORECLR guard from FullCLR files
...
This reverts the `if !CORECLR ... #endif` guard surrounding FullCLR
files by applying the original diff from the `source-depot` branch, thus
the accidentally overwritten BOMs were restored as well.
2016-06-14 16:06:48 -07:00
Andrew Schwartzmeyer
a184876b0a
Pin .NET CLI to LKG version 1.0.0-preview2-003067
...
Also teach `Start-PSBootstrap` the parameters `Channel` and `Version` to
pass to .NET CLI's obtain scripts.
2016-06-14 13:33:19 -07:00
Andrew Schwartzmeyer
c9c20988c3
Update building documentations for Linux and OS X
2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer
896129652c
Force link openssl on OS X
2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer
11d2c2c6e7
Update Start-PSBootstrap to use .NET CLI's scripts
...
Linux and OS X no longer install packages, instead they download the
1.0.0 uninstall and install scripts provided by .NET CLI, uninstall all
existing `dotnet` packages, and "install" the latest 1.0.0 preview2
version of `dotnet` to `~/.dotnet`, which `Start-PSBuild` automatically
picks up.
Additionally, `Start-PSBootstrap` only attempts to install dependencies
when it detects that it is on Ubuntu 14.04, otherwise it warns that
dependencies must be installed manually, and still installs `dotnet` via
their obtain script. This makes `Start-PSBootstrap` safe to run on
Debian, and usable on CentOS.
2016-06-10 16:12:01 -07:00
Andrew Schwartzmeyer
2639f2a8ae
Use include key in copyToOutput and publishOptions
...
While the schema says that a `string[]` will be picked up as if `{
"include" : [ ... ] }` was used, it does not. This is a .NET CLI bug.
2016-06-10 13:00:33 -07:00
Andrew Schwartzmeyer
9b2be207f7
Don't attempt to publish any profiles
...
PowerShell does not ship with any default profiles.
2016-06-10 12:44:18 -07:00
Andrew Schwartzmeyer
44f3fb1211
Update content to copyToOutput and publishOptions
...
These must be duplicated as we require the same files for both `build`
and `publish`. This is the requirement of the new schema, as `content`
was split.
Note that while each key can take an object, if given just a `string[]`
as we do here, it defaults to `include`.
See the new schema: https://github.com/aspnet/Announcements/issues/175
2016-06-10 12:41:26 -07:00
Andrew Schwartzmeyer
1a1de1d4a0
Remove unnecessary LINUX configuration from Commands.Utility
2016-06-10 11:52:35 -07:00
Andrew Schwartzmeyer
e61d698bbc
Remove NOETW in favor of LINUX
...
ETW is available on Windows, so this is only (and will always be)
necessary for Linux.
2016-06-10 11:49:40 -07:00
Andrew Schwartzmeyer
80aceb7a8a
Move compile data to build options
2016-06-10 11:15:37 -07:00
Andrew Schwartzmeyer
e3056303aa
Rename compilationOptions to buildOptions in project.json files
...
This resolves #928 . This is a breaking change in that you *must* be
running a recent version of .NET CLI.
2016-06-10 11:03:56 -07:00
Andrew Schwartzmeyer
560bcaf736
Refactor base directory tests
2016-06-09 14:16:33 -07:00
Andy Schwartzmeyer
a48c5281a5
Fix Windows consistency tests
...
Use `USERPROFILE`, not `HOME`. The latter doesn't exist on Windows, and
`HOMEPATH` strips the drive. The former provides `C:\Users\<username>`.
Fix location tested for JIT cache location on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
539f8696e5
XDG cache directory now guaranteed to exist
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
d5f6295042
Update ModuleAnalysisCache to use XDGBDS on Linux
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
4b0c916646
Skip tests which can't be run on Travis OS X
...
These should be marked as `-Pending` but Pester doesn't accept both
`-Skip` and `-Pending` parameters, so they had to be combined to support
skipping on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
0e10a51802
Whitespace and formatting cleanups
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
140d452ba2
Fix PSReadLine history path on Windows
...
Bug introduced in initial port of PSReadLine. `Path.Combine` sees the
initial backslash as an absolute path, thus discarding `AppData`.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
41c7f9e469
Update XDG BDS tests to specifications
...
This renames the tests and updates for better requirement
specifications. The profile, modules, history, and startup cache data
are tested for not breaking Windows behavior, new Linux behavior, and
respecting set variables on launch. This also corrects some erroneous
assumptions I had previously made.
The ModuleAnalysisCache cannot be tested, and the startup cache data
might not be testable on Windows.
2016-06-09 09:50:36 -07:00
Andrew Schwartzmeyer
fd649c0f77
Revert "Merge pull request #1046 from PowerShell/GetMemberCommandTest"
...
This reverts commit 7392c68bcb , reversing
changes made to 1ee6e4ef2d .
2016-06-08 13:24:33 -07:00
Andrew Schwartzmeyer
1f36de3e03
Revert "Merge pull request #1047 from PowerShell/CompareObjectPesterTest"
...
This reverts commit 1ee6e4ef2d , reversing
changes made to 5a0155dc9d .
2016-06-08 13:23:21 -07:00
Andrew Schwartzmeyer
338b9a3462
Add LLDB with SOS via tools/debug.sh note to debugging docs
2016-06-06 12:20:28 -07:00
Andrew Schwartzmeyer
112945657c
Update debug.sh script for new layout
2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
90be3585e1
Move debug.sh
2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
0b0b141ea5
Move download.sh script to tools tree
2016-06-06 12:15:49 -07:00
Andrew Schwartzmeyer
751f8a0635
Add debugging info on use of Trace-Command
2016-06-06 11:54:13 -07:00
Andrew Schwartzmeyer
e2d1089a08
Test import of cmdlet-example module on FullCLR PowerShell
2016-06-06 11:39:29 -07:00
Andrew Schwartzmeyer
1d96695a63
Update cmdlet-example to use netstandard1.3
...
As this enables importing the same DLL everywhere.
2016-06-06 11:39:29 -07:00
Andrew Schwartzmeyer
195ed6e790
Ask for $PSVersionTable in issue template
2016-06-03 17:10:34 -07:00
Andrew Schwartzmeyer
c6960f0867
Add tests for command name matching
2016-06-03 14:18:00 -07:00
Andrew Schwartzmeyer
5c4675c63f
Allow scripts to be called without .ps1 extension
...
For instance, `script.ps1` can be called with just `script`.
2016-06-03 14:17:47 -07:00
Andrew Schwartzmeyer
70be543038
Add Get-TraceSource test
2016-06-03 13:53:20 -07:00
Andrew Schwartzmeyer
dbae9e5c13
Import Trace-Command tests from source depot
2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer
facef0ce6b
Enable tracing commands in module
2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer
f1741c04f5
Use Dispose() instead of Close() for CORECLR
2016-06-03 13:35:56 -07:00
Andrew Schwartzmeyer
52621adba8
Use Security.Permissions stub
2016-06-03 12:07:48 -07:00
Andrew Schwartzmeyer
e007412628
Build utility/trace sources for Core PowerShell
2016-06-03 10:27:50 -07:00
Andrew Schwartzmeyer
2b91e1ba90
Add TextWriterTraceListener to Commands.Utility
2016-06-03 10:27:50 -07:00
Andrew Schwartzmeyer
66ddfcdaff
Make git describe work relative to script
...
So that you don't have to watch your CWD when running commands from the
build module.
2016-06-01 11:15:09 -07:00
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