Zachary Folwick
df2a4939ed
added code review changes
2015-08-26 10:53:36 -07:00
Zachary Folwick
972734cbc8
Merge branch 'develop' of ms https://msostc.visualstudio.com/DefaultCollection/PS/_git/monad-linux into dev/112-split-path-pester
...
Conflicts:
src/monad
2015-08-24 11:48:22 -07:00
Andrew Schwartzmeyer
1a3d4aa9a6
Refactor host usage
...
Build scripts and powershell-simple.cs were refactored to work with the
patch to CoreCLR and updated hosting code.
- Paths in Makefile were fixed because the hosting code runs the
assembly from the current working directory (usually app_base)
- runps scripts were all fixed because the hosting code CLI changed
- powershell-simple.cs was cleaned up because its Main function is now
directly executed
- monad submodule was repinned while we had the change
- monad-ext submodule was updated with rebuild CoreCLR binaries
- monad-native submodule was repinned to development, including fixed
test and hosting code changes
2015-08-21 17:43:46 -07:00
Zachary Folwick
632a11a6c6
fixed typo using parent switch
2015-08-21 14:58:34 -07:00
Zachary Folwick
8458e5779e
brought in submodule changes and modded test to not expect the / to be removed in the path
2015-08-21 14:34:00 -07:00
Zachary Folwick
2689741ddc
added support for PSL to remove qualifiers correctly
2015-08-17 15:07:00 -07:00
Zachary Folwick
4862e6cfd8
added more tests to more thoroughly test split-path
2015-08-17 15:03:14 -07:00
Andrew Schwartzmeyer
40ba6c214e
Fix GetUserName unit test
...
A deadlock was occurring when executing `whoami` through
System.Diagnostics.Process because we were calling `WaitForExit()`
before `StandardOutput.ReadToEnd()`. According to the documentation, "To
avoid deadlocks, always read the output stream first and then wait,"
which is what we do here now.
Additionally, `Process` implements IDisposable, and is now automatically
disposed via the `using` block.
https://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/System.Diagnostics.Process(v=vs.110).aspx
2015-08-13 15:45:13 -07:00
Zachary Folwick
5968e97eaa
changed PowerShell code to get Split-Path -Qualifier working in linux
2015-08-13 11:40:07 -07:00
Zachary Folwick
fd75d29628
changed ParsePathCommand.cs to get Split-Path unit tests to pass
2015-08-11 16:03:00 -07:00
Andrew Schwartzmeyer
8d34bbea0a
Repin monad and monad-native
2015-08-10 13:37:17 -07:00
Andrew Schwartzmeyer
095ef2c385
Assert GetUserName unit test against whoami
2015-08-07 16:56:19 -07:00
Andrew Schwartzmeyer
b1ef23d707
Merge branch 'develop' into dev/67-GetUserName
2015-08-07 16:00:59 -07:00
Zach Folwick
5979596de2
Merge pull request 109 from dev/153-format-list-tests into develop
2015-08-07 21:51:42 +00:00
Zachary Folwick
749a92dff8
made string calls more precise
2015-08-07 14:52:19 -07:00
Andrew Schwartzmeyer
d35e13afdb
Fix list of props test and merge cruft
2015-08-07 14:39:17 -07:00
Zachary Folwick
6ef2590331
merged changes from upstream
2015-08-07 14:25:38 -07:00
Zachary Folwick
fd8a9d25ac
added a beforeEach clause
2015-08-07 14:12:40 -07:00
Andrew Schwartzmeyer
f4e84a84bd
Refactor and add tests
2015-08-07 14:07:03 -07:00
Andrew Schwartzmeyer
e5ca617d2a
Repin monad and monad-native
2015-08-07 13:11:21 -07:00
Zachary Folwick
22348bdb91
removed unnecessary comments and matched style
2015-08-07 11:34:36 -07:00
Zachary Folwick
a8a8e2091c
changed filtering test to be better
2015-08-07 11:31:50 -07:00
Zachary Folwick
bbed466ada
resolved style and readability comments
2015-08-07 10:12:37 -07:00
Zachary Folwick
49d5bf1121
added custom powershell object to properly mock the test function
2015-08-06 16:40:10 -07:00
Zachary Folwick
ba17c42d38
added comments explaining why the test has to be scripted this way
2015-08-06 13:11:05 -07:00
Zachary Folwick
b0d7a2153e
changed it statement to accurately reflect test
2015-08-06 11:31:30 -07:00
Peter Honeder
8daafecc67
Merge pull request 112 from dev/70-refactor-FileSystemProvider into develop
2015-08-06 14:44:43 +00:00
Peter Honeder
3137e26e98
added Pester test for mode flags in ls output
2015-08-06 16:35:06 +02:00
Peter Honeder
3cd7620413
re-pin to latest fixes, added small test for CreateJunction
2015-08-06 16:24:18 +02:00
Zachary Folwick
052165d15a
added test to determine if output is correct
2015-08-05 16:01:10 -07:00
Peter Honeder
c9cf2a42fa
re-pin to latest cleanup
2015-08-05 15:50:36 +02:00
Peter Honeder
b2c7331f7c
re-pin to latest refactoring fixes
2015-08-05 15:44:54 +02:00
Andrew Schwartzmeyer
1d18a810ab
Update pinned monad-native
2015-08-04 18:38:04 -07:00
Zachary Folwick
f24dfb02dc
added Format-List test
2015-08-04 16:07:14 -07:00
Andrew Schwartzmeyer
2a6305ca11
Add passing GetUserName unit test
...
Updates monad-native submodule to include GetUserName P/Invoke, and
updates monad submodule to use said P/Invoke.
Matches the username against ^[a-z][a-z0-9\-]*$
2015-08-04 14:48:12 -07:00
Zachary Folwick
f86f856ba6
undid failing test
2015-08-04 11:19:41 -07:00
Zachary Folwick
df8722dfc8
created a failing test for jenkins troubleshooting
2015-08-04 10:57:54 -07:00
Zachary Folwick
1a38a52e00
added format-table tests
2015-08-04 00:31:30 -07:00
Peter Honeder
498b5db6df
Merge pull request 104 from dev/131-cleanup-Environment.OSVersion into develop
2015-08-03 08:18:30 +00:00
Peter Honeder
3250b491b0
re-pin to cleanup of System.Management.Automation.Environment.OSVersion, added unit test
2015-07-31 15:54:52 +02:00
Peter Honeder
f2fd9ca303
enabled hash bang support, fixed run scripts to not alter the current working directory
2015-07-31 00:47:22 +02:00
Peter Honeder
4f5dd47168
Merge branch 'dev/121-custom-hosting-2' into dev/125-split-dlls
2015-07-30 17:44:01 +02:00
Peter Honeder
ed93168e5e
refactored Makefile run targets, added helper scripts for powershell-simple, changed how PS is invoked to solve issue #122 , moved dlls for PowerShell away from CoreCLR, re-pinned to latest monad and monad-native fixes, added UnmanagedMain entry point for powershell-run.exe
2015-07-30 16:57:32 +02:00
Peter Honeder
5cffe858af
added test_Utils with test for IsWinPEHost
2015-07-29 17:33:49 +02:00
Peter Honeder
d14e703449
re-pin to refactored IsWinPEHost changes
2015-07-29 17:33:49 +02:00
Peter Honeder
e07c5f65a9
re-pin to latest monad-native version
2015-07-29 17:31:38 +02:00
Peter Honeder
c080f351ea
re-pin to latest native host implementation, changed managed code signature
2015-07-29 17:31:38 +02:00
Peter Honeder
72bcbd9eea
initial version of custom hosting code
2015-07-29 17:31:24 +02:00
Peter Honeder
a31af1e301
using nuget 3 because it's much faster, re-pin to monad-ext containing nuget.exe, hardcoded c# compiler toolchain version too
2015-07-29 17:01:25 +02:00
Zachary Folwick
bc91ac8684
deleting trailing whitespace
2015-07-24 10:38:51 -07:00