Commit graph

60 commits

Author SHA1 Message Date
Peter Honeder
ead0b0c547 Merge pull request 71 from dev/104-105-code-cleanup into develop 2015-07-17 00:07:03 +00:00
Zach Folwick
68fa654813 Merge pull request 72 from initialTestSuites into develop 2015-07-16 23:14:28 +00:00
Zachary Folwick
3d47638e5c fixed Get-ChildItem.Tests 2015-07-16 16:13:12 -07:00
Zachary Folwick
c8a6f4d783 fixed Environment-variables tests and typos in get-item 2015-07-16 15:52:42 -07:00
Zachary Folwick
489532736c fixed Get-Item tests 2015-07-16 15:31:52 -07:00
Zachary Folwick
ae037b7984 fixed split-path tests; found a bug in powershell 2015-07-16 15:29:50 -07:00
Zachary Folwick
9493af81af fixed get-date tests 2015-07-16 14:59:50 -07:00
Peter Honeder
4800acb975 re-pin to latest monad fixes for issue 104 and 105 2015-07-16 14:45:20 -07:00
Peter Honeder
061c8543ea removed monad_app_base submodule because it's not needed anymore 2015-07-15 18:36:43 -07:00
Zachary Folwick
c55e5cbc88 fixed get-Content issues 2015-07-15 16:30:20 -07:00
Zachary Folwick
088335669d fixed typo 2015-07-15 16:27:53 -07:00
Zachary Folwick
fffe79b751 fixed test assumptions; is now passing tests 2015-07-15 14:15:53 -07:00
Zachary Folwick
95dcc23bbb added more granular unit-test for failing getType() output 2015-07-15 13:31:07 -07:00
Zachary Folwick
2b079b2cb9 removing commit 2015-07-15 11:40:03 -07:00
Zachary Folwick
a186934c55 deleted test-Get-Alias.ps1 2015-07-15 11:39:14 -07:00
Zachary Folwick
028021ef44 test suite was not recognizing test file 2015-07-15 11:33:30 -07:00
Zachary Folwick
868ea370d4 initial commit 2015-07-15 10:15:39 -07:00
Peter Honeder
f4498565cb re-pin to latest monad updates 2015-07-13 14:59:03 -07:00
Peter Honeder
ad9ca600f7 re-pin to latest version in develop-2015-07-13 2015-07-13 14:49:54 -07:00
Peter Honeder
dfb377bae9 re-pin to latest rebased powershell changes and updated resources 2015-07-13 14:03:50 -07:00
Peter Honeder
b90a8f6564 added pester-tests target to Makefile, added that as a dependency to make test 2015-07-13 13:38:47 -07:00
Peter Honeder
0e12ab46e3 add pester to Makefile, re-pin to latest monad fixes 2015-07-10 11:35:26 -07:00
Peter Honeder
e5e18d5857 added changes to query terminal size 2015-07-07 18:05:52 -07:00
Peter Honeder
0546b02e1c added --file parameter to run a script 2015-07-07 18:02:04 -07:00
Andrew Schwartzmeyer
b2e3a1e2e3 Add unit test for HasRegistrySupport()
The use of the function in RegistryProvider cannot be tested without a
mock of a PowerShell cmdlet context.
2015-07-06 12:46:38 -07:00
Andrew Schwartzmeyer
3919ec8375 Add unit test for PSEnumerableBinder.IsComObject() 2015-07-06 12:46:18 -07:00
Peter Honeder
2485282b06 re-pinned to latest monad repo 2015-07-01 11:34:27 -07:00
Peter Honeder
ec4a4f81e0 re-pin monad-ext to removed reference assemblies 2015-07-01 11:26:01 -07:00
Peter Honeder
f14622bf30 cleaned Makefile, extended powershell-simple.exe host, updated to latest monad version 2015-07-01 11:23:53 -07:00
Peter Honeder
05ad29f3cf bumping to latest monad changes, updated makefiles 2015-06-30 19:24:53 -07:00
Peter Honeder
a32bb7a5c5 stubbed Microsoft.Management.Infrastructure.Native.dll 2015-06-29 15:48:50 -07:00
Andrew Schwartzmeyer
bf62c60637 Update src/monad submodule to monad-sync1
At branch dev/undo-resx-changes
2015-06-26 11:36:48 -07:00
Peter Honeder
4e8c596967 Merge pull request 46 from dev/76-interactive-shell into develop 2015-06-18 20:33:34 +00:00
Peter Honeder
8e90f73867 bumping monad-ext to include xunit 2015-06-18 10:08:59 -07:00
Peter Honeder
b5dfaab12a added a new host based on Sample06 from msdn, added docker testing support 2015-06-17 20:36:35 -07:00
Andrew Schwartzmeyer
8f96a9e786 Indent and whitespace cleanup powershell-run.cs 2015-06-17 11:38:42 -07:00
Andy Schwartzmeyer
9351c05c82 Merge pull request 38 from dev/33-DriveAutoMount into develop 2015-06-16 21:24:50 +00:00
Peter Honeder
af23cbde92 Merge pull request 40 from dev/68-fix-make-depdendency-libps.so into develop 2015-06-16 21:22:05 +00:00
Peter Honeder
0b32836da7 bumped the monad-native submodule to a version that contains libps.so 2015-06-16 14:20:54 -07:00
Andrew Schwartzmeyer
195f42bea5 Add unit test for HasDriveAutoMounting()
Cannot unit test SessionStateInternal.Drives() (where this feature query
is used) without a testable mock of PowerShell.
2015-06-15 15:17:15 -07:00
Andrew Schwartzmeyer
c42ba3bd56 Add unit tests for UsesCodeSignedAssemblies()
Used in MshSnapinInfo.PSSnapInReader
2015-06-15 11:23:18 -07:00
Andrew Schwartzmeyer
f7ffcd561a Add unit tests for HasAmsi() 2015-06-11 15:52:42 -07:00
Andrew Schwartzmeyer
13cccf51cc Add unit tests for HasCom() and IsComObject()
Added using declartion for clarity to test_CorePsPlatform and made test
function naming scheme consistent.

Update monad submodule with feature query.
2015-06-11 15:27:36 -07:00
Andrew Schwartzmeyer
99804642fc Compile all unit tests into one shared dll 2015-06-11 14:17:12 -07:00
Andrew Schwartzmeyer
d9a0c8270f Refactor unit tests
Splits unit tests into multiple files and a mock test runner (to be
replaced with the xUnit runner when it becomes available).
2015-06-11 13:47:35 -07:00
Peter Honeder
3ab9a20121 fixed PS shutdown issue by providing a pinvoke library for RegKeyClose because that's what CoreCLR on Linux requires 2015-06-10 15:02:11 -07:00
Peter Honeder
58cb4fce5c added run-debugclr target that uses the debug build of CoreCLR 2015-06-10 14:01:04 -07:00
Peter Honeder
0bbd43e3bf renamed ps_hello_world.exe to powershell-run.exe 2015-06-10 11:45:37 -07:00
Andrew Schwartzmeyer
e4df047464 Use Xunit assertions
* Update monad-ext submodule with Xunit dlls
* Point Makefile xunit targets to monad-ext/xunit
* Add xunit.assert target to Makefile
* Add xunit.assert as dependency of ps_test.exe
* Add corerun as dependency of ps_test.exe
* Link ps_test.exe with xunit.assert
* Temporarily remove libps.so from ps_test.exe dependencies (WIP)
* Use Xunit in ps_test.cs
* Remove Assert mock
* Temporarily remove Platform.UserName (WIP)

With this patch, `make cleanall && make prepare && make run-test`
executes our (few) tests correctly using Xunit (without needing to `make
run` first).
2015-06-05 16:50:09 -07:00
Peter Honeder
0fc369dcb6 linking in string resources files 2015-06-03 16:33:08 -07:00