Commit graph

2527 commits

Author SHA1 Message Date
JumpingYang001
c87dac7ba0 Add DisplayXMLTest to Pester Unit Test 2016-06-11 23:11:53 -07:00
Sergei Vorobev
58425bbcc0 Merge pull request #1093 from PowerShell/andschwa/project-model-update
Rename compilationOptions to buildOptions in project.json files; Remove NOETW
2016-06-10 16:34:25 -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
Sergei Vorobev
ebd28ec665 Merge pull request #1091 from PowerShell/vors/xunit
Re-enable xunit tests
2016-06-10 10:31:59 -07:00
Sergei Vorobev
88ac6d0b2d Temporarely skip 1 failing test 2016-06-10 17:03:49 +00:00
Sergei Vorobev
333a809fe8 Revert "Temporarily disable xUnit tests"
This reverts commit 3d18f454f6.
2016-06-10 07:16:33 +00:00
Sergei Vorobev
32b90c048a Remove Microsoft.PowerShell.Diagnostics from default Snapins on LINUX 2016-06-10 07:16:33 +00:00
James Truher [MSFT]
7170bc681b Merge pull request #982 from PowerShell/SelectObjectPesterTest
Add Select-Object Pestert Test
2016-06-09 16:41:36 -07:00
James Truher [MSFT]
5b17b603fb Merge pull request #989 from PowerShell/CsvCommandTest
Add Unit Test for Export-Csv
2016-06-09 16:37:57 -07:00
James Truher [MSFT]
0d3f980795 Merge pull request #1022 from PowerShell/ImportCSVV2Tests
Add Unit Test for Import-Csv
2016-06-09 16:34:53 -07:00
James Truher [MSFT]
b76f569caf Merge pull request #983 from PowerShell/ConvertToXml
Add Unit Test for ConvertTo-Xml
2016-06-09 16:28:05 -07:00
James Truher [MSFT]
eeb715bf4e Merge pull request #1060 from PowerShell/xdg
XDG Changes
I like these tests much better now - far easier to follow
2016-06-09 16:17:48 -07:00
Andrew Schwartzmeyer
560bcaf736 Refactor base directory tests 2016-06-09 14:16:33 -07:00
Andy Schwartzmeyer
06f563bb07 Merge pull request #1075 from PowerShell/andschwa/binary-compatibility
Cross-platform (FullCLR/CoreCLR) binary module creation
2016-06-09 10:42:06 -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
v-alexjo
a293707d71 XDG cache home now will create powershell child folder 2016-06-09 09:50:36 -07:00
v-alexjo
f46aa8d195 configdefault missed in refactoring 2016-06-09 09:50:36 -07:00
v-alexjo
42c0b9a5f7 Style changes and psreadline path change 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
v-alexjo
caa4c3f163 Changing history to cache, removed redundant code 2016-06-09 09:50:36 -07:00
v-alexjo
c2527199a6 Further code review changes 2016-06-09 09:50:36 -07:00
v-alexjo
4c1f9f9c79 Adding XDG tests 2016-06-09 09:50:36 -07:00
v-alexjo
237c659b5e Changes to xdg to append powershell path 2016-06-09 09:50:36 -07:00
v-alexjo
29e97bf1aa Code review changes to XDG support 2016-06-09 09:50:36 -07:00
v-alexjo
54c64c9db6 Initial XDG support and folder default changes
Conflicts:
	src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
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
James Truher [MSFT]
26691a5088 Merge pull request #1024 from PowerShell/MeasureObjectPesterTest
Add Measure-Object Pester Unit Test
2016-06-08 12:02:56 -07:00
James Truher [MSFT]
7392c68bcb Merge pull request #1046 from PowerShell/GetMemberCommandTest
Add Unit Test for Get-Member
2016-06-08 12:00:57 -07:00
James Truher [MSFT]
1ee6e4ef2d Merge pull request #1047 from PowerShell/CompareObjectPesterTest
Add Compare-Object Pester Unit Test
2016-06-08 11:59:14 -07:00
James Truher [MSFT]
5a0155dc9d Merge pull request #1056 from PowerShell/NewObjectPesterTest
Add New-Object Pester Unit Test
2016-06-08 11:57:59 -07:00
James Truher [MSFT]
8fca9646e9 Merge pull request #1057 from PowerShell/SelectXMLPesterTest
Add Select-XML Pester Unit Test
2016-06-08 11:56:23 -07:00
James Truher [MSFT]
0e2f25def5 Merge pull request #1059 from PowerShell/TeeObjectTests
Add Unit Test For Tee-Object
2016-06-08 11:53:39 -07:00
Andy Schwartzmeyer
3ad7520173 Merge pull request #1077 from PowerShell/andschwa/tools
Move some tools into tools tree
2016-06-07 10:06:13 -07:00
Andy Schwartzmeyer
109f3af562 Merge pull request #1079 from PowerShell/RaghuS-RenameAssetsBranch
Renamed 'Assets' folder to 'assets' - for systems that are case sensitive
2016-06-06 15:04:20 -07:00
Raghu Shantha [MSFT]
3ea2049e2c Renamed Assets folder to assets - for systems that are case sensitive 2016-06-06 14:28:27 -07:00