Commit graph

3726 commits

Author SHA1 Message Date
Aleksandar Nikolić
d6b8159e5c Update installation/linux.md
Fixing typo.
2016-08-02 22:12:00 +02:00
Michael Greene
b92791216b remove -PublishLocation 2016-08-02 15:09:32 -05:00
James Truher
6a07b71ba6 update tests to include $IsCoreCLR rather than $IsCore
also fix archive test to be sure it gets the proper archive module (not the one that's somewhere in the filesystem)
2016-08-02 12:50:24 -07:00
Andy Schwartzmeyer
f5502bcddc Merge pull request #1605 from PowerShell/vors/resgen
C#-based resgen
2016-08-02 12:48:39 -07:00
Sergei Vorobev
78c9da25fa Merge pull request #1601 from PowerShell/travisez13/BuildWSManInCore
Compile WSMan binaries when compiling for dot net core
2016-08-02 12:47:31 -07:00
Sergei Vorobev
fb2770392d Remove author tag from all project.json files 2016-08-02 12:39:30 -07:00
Jason Shirk
cfba7537f3 Merge pull request #1599 from PowerShell/error-stream
Error stream
2016-08-02 12:15:13 -07:00
James Truher
0a18a46281 Update json tests to be more cross-plat and handle multiple invocations
only create the enumtest type if it doesn't exist
don't try to compare line endings on json tests which contain arrays,
formatting of the output need not be validated
2016-08-02 12:05:24 -07:00
James Truher
dd0291be09 update encoding on the test files - these are ascii 2016-08-02 12:05:24 -07:00
James Truher
7b836f99f5 create work-around for MacOS in handling wildcards 2016-08-02 12:05:24 -07:00
James Truher
0f60b69af4 Fix Get-Command tests to better handle non-Windows platforms.
set executable bit on Linux/MacOS as that's what determines whether something
is executable. Also simplify partial path creation, only remove up to the first
colon, so those filesystems which have a single root are treated properly
2016-08-02 12:05:24 -07:00
James Truher
96a81c626c rename test files so they match map.json and can be found by invoke-pester 2016-08-02 12:05:24 -07:00
PowerShell Team
1d11f67376 fix two more file copy targets
they weren't being recognized as pester tests because they didn't have the right name
2016-08-02 12:05:24 -07:00
James Truher
d23a5fddc7 fix Archive module to work correctly when the DirectorySeparatorChar is "/"
rather than use either "/" or "\", just use [io.path]::DirectorySeparatorChar
2016-08-02 12:05:24 -07:00
James Truher
176f9fb6bd rename archive test file so it may be found by invoke-pester 2016-08-02 12:05:24 -07:00
PowerShell Team
3575eac7b3 fix typo in archive test name
it needs to have the correct name in order to be executed by invoke-pester
2016-08-02 12:05:24 -07:00
PowerShell Team
ce4303b873 migrated tests run clean on all platforms (locally) 2016-08-02 12:05:24 -07:00
PowerShell Team
0261372bae remove scheduled job tests 2016-08-02 12:05:24 -07:00
PowerShell Team
43eae99276 remove scheduledjob cmdlet tests 2016-08-02 12:05:24 -07:00
PowerShell Team
7305b82b73 Add migrated files 2016-08-02 12:05:24 -07:00
PowerShell Team
721ad34c62 add missing sample archive file 2016-08-02 12:05:24 -07:00
PowerShell Team
28a06155c8 add map.json file for migration of Pester cmdlet tests 2016-08-02 12:05:24 -07:00
James Truher [MSFT]
935185cf6b fix don't section so it's visible 2016-08-02 11:55:50 -07:00
James Truher
8d758b63f2 updates based on PR feedback 2016-08-02 11:51:43 -07:00
James Truher
2920a3db66 Add images to this branch 2016-08-02 11:51:43 -07:00
James Truher
21494be11b updates from previous PR to incorporate feedback 2016-08-02 11:51:43 -07:00
Sergei Vorobev
08fda6842a Replace powershell-based resgen by dotnet C# based one 2016-08-02 11:47:53 -07:00
Sergei Vorobev
483166ea60 Update .gitignore about .vscode 2016-08-02 11:45:50 -07:00
Sergei Vorobev
db3274f103 Add dotnet-based resgen 2016-08-02 11:45:37 -07:00
Travis Plunk
724c53ced8 Compile WSMan binaries when compiling for dot net core 2016-08-02 11:45:11 -07:00
Paul Allen
a7f58b2026 split the wsman apis into client/server shared libraries 2016-08-02 11:40:09 -07:00
Sergei Vorobev
d8afbcecbb Merge pull request #1603 from lzybkr/csproj_tweak
csproj fixes - add reference and fix assembly name so InternalsVisibl…
2016-08-02 11:25:38 -07:00
Jason Shirk (POWERSHELL)
75eab56e21 csproj fixes
- add some missing references
- fix assembly name so InternalsVisibleTo works
2016-08-02 10:50:51 -07:00
Raghu Shantha [MSFT]
1ee990ac0d Merge pull request #1602 from alexandair/patch-2
fixing casing and typos in windows-full.md
2016-08-02 10:34:31 -07:00
Aleksandar Nikolić
0160488925 fixing casing and typos in windows-full.md
Fixing casing for CoreCLR and FullCLR.
Fixing a couple of typos.
2016-08-02 18:17:04 +02:00
Jason Shirk
ae67cc4676 Merge pull request #1514 from PowerShell/AdapterPesterTest
Add Adapter Pester Unit Test
2016-08-02 09:16:34 -07:00
Michael Greene
002adc283b caps .Replace 2016-08-02 08:41:22 -05:00
Michael Greene
cdb925f1fe correct type in d$ 2016-08-02 08:39:24 -05:00
Michael Greene
bf22db9d68 Context caps 2016-08-02 08:38:45 -05:00
Michael Greene
9007ba4062 merge from master and resolve conflicts 2016-08-02 08:20:25 -05:00
Michael Greene
d6a1df3e9b Working with PowerShell Objects 2016-08-02 08:15:36 -05:00
JumpingYang001
86bf00e48b Add Adapter Pester Unit Test 2016-08-02 00:31:27 -07:00
Alex Jordan
e2846379b8 Fixing default and error colors for PSReadLine 2016-08-02 00:16:54 -07:00
Raghu Shantha [MSFT]
d995faba02 Merge pull request #1594 from PowerShell/raghushantha-linuxinstall
Updates to Linux install instructions
2016-08-01 20:45:42 -07:00
Sergei Vorobev
5690b1a0d9 Add tests for Error stream 2016-08-01 18:40:51 -07:00
Sergei Vorobev
161940c9aa Don't apply red color to error stream output 2016-08-01 18:40:50 -07:00
Sergei Vorobev
a12eff96c0 Change formatter for ErrorRecord
Fix #1465

On Linux, it's common to use error stream (2) as an information stream.
There is no errors in this case, it's just a way to report info.
When PowerShell redirects error stream, it wraps all output from stream 2
in NativeCommandError ErrorRecord.

That doesn't happen for interactive experience (when there is no
redirection), but it shows up in logs, scripting and non-console
powershell hosts (i.e. PowerShell ISE).

Here we change the formatter, so we are keeping the ErrorRecords
objects, but we are changing their default representation.

If it's a NativeCommandError, we don't use the regular ErrorRecord
formatter. It allows us keep ErrorRecord object,
but in redirection case it will look exectly like on the screen.

Also, we are change NativeCommandErrorMessage to use one line per
ErrorRecord to enable this scenario.
2016-08-01 18:39:57 -07:00
Jason Shirk
fff95b5366 Merge pull request #1598 from PowerShell/joey/license
add line breaks to MIT license
2016-08-01 18:35:11 -07:00
Jason Shirk
9742b64170 Merge pull request #1591 from lzybkr/code_formatting
Code formatting
2016-08-01 16:46:05 -07:00
Raghu Shantha [MSFT]
b540c40517 Merge pull request #1596 from PowerShell/raghushantha-windowsinstall-1
Update Windows install instructions for MSI
2016-08-01 16:34:19 -07:00