Zachary Folwick
e0f6b1fa0b
added New-Item Test Suite
2015-08-25 14:46:29 -07:00
Zachary Folwick
1c1c1dacaa
turned repeated string into a variable
2015-08-25 10:15:21 -07:00
Zachary Folwick
f919006d46
re-ordered tests to indicate a logical progression to facilitate
...
debugging
added tests to validate individual environmental variables
2015-08-24 15:05:32 -07:00
Zachary Folwick
ed86ae170e
added tests to validate individual environmental variables
2015-08-24 14:47:06 -07:00
Zachary Folwick
f739305502
deleted superfluous assertion
2015-08-24 13:54:13 -07:00
Zachary Folwick
a0ba3b6b8f
modified to work under jenkins
2015-08-24 13:39:24 -07:00
Zachary Folwick
1d447bd470
updating branch
...
Merge branch 'develop' of mshttps://msostc.visualstudio.com/DefaultCollection/PS/_git/monad-linux into dev/171-environmental-variable-test-bug
2015-08-24 13:05:16 -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
Zachary Folwick
4ded5c5cd9
added environment variable tests
2015-08-24 11:38:32 -07:00
Zachary Folwick
adb2e66c91
removed typos
2015-08-24 10:06:48 -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
8091785240
Fixed whitespace and directory test assertions
2015-08-21 15:57:34 -07:00
Zachary Folwick
95e932d6d0
removed AfterEach block because it's not required
2015-08-21 15:51:27 -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
4f4cbbac2e
added tests to get working in linux
2015-08-20 11:49:01 -07:00
Zachary Folwick
d8996b2bf7
added pester tests for out-file and got running in linux
2015-08-19 14:13:15 -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
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