Commit graph

1455 commits

Author SHA1 Message Date
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 864e32f331
Merge branch 'develop' into dev/fix-nuget 2015-08-11 08:59:28 -07:00
Andrew Schwartzmeyer c9e1b6cbb1
Use NuGet APIv3 2015-08-11 08:56:29 -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
Andrew Schwartzmeyer ad91eb52c3
Add source flag to nuget.exe install
`-Source 'https://nuget.org/api/v2'`

Works around NuGet 3 issues. Necessary with the MonoProject's
mono-devel (which is used in the Docker build container).
2015-08-05 16:45:19 -07:00
Zachary Folwick 052165d15a added test to determine if output is correct 2015-08-05 16:01:10 -07:00
Andrew Schwartzmeyer adc5cd7459 Update Docker build script to use fakelogin
fakelogin populates /var/run/utmp enough such that getlogin() works, and
is included in the latest Docker image.

Run `docker pull andschwa/magrathea` to update.
2015-08-05 15:35:20 -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
Andrew Schwartzmeyer 90de5ae488
Change mshttps to https for Pester submodule
Should not assume mshttps anyway, plus it's been deprecated.
2015-08-04 16:38:12 -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 dc878906a8 Merge pull request 105 from dev/130-move-libps-build-to-buildtemp into develop 2015-08-03 08:18:16 +00:00
Peter Honeder 2bec2539cb removed libps-build from .gitignore 2015-07-31 16:46:57 +02:00
Peter Honeder 66d2c7f35d Makefile changes to move libps-build into buildtemp sub directory 2015-07-31 16:46:40 +02:00
Peter Honeder 0172601dee made null change to .gitignore to re-trigger build 2015-07-31 16:15:42 +02: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 56ae9e5ebd changed Dockerfile to support updated directory structure in exec_env, added copy command to copy missing libps.so for run targets 2015-07-30 18:47:25 +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 5e68effa29 added host_cmdline to RUN_TARGETS 2015-07-29 17:31:38 +02:00