Commit Graph
50 Commits
Author SHA1 Message Date
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
Peter Honeder ae9b8fecea compile time changes to enable system-automation.mk 2015-06-03 15:16:31 -07:00
Peter Honeder 7467627d3f moved temporary string resources for SMA.dll to string_resources folder, until system-automation.mk is enabled 2015-06-03 11:02:51 -07:00
Peter Honeder 8c6befb41c latest build udpates to have selfhosted builds 2015-06-01 15:49:30 -07:00
Peter Honeder d91252ab52 bulk add of all build changes and resources needed to build PS on linux 2015-05-29 13:56:28 -07:00
Peter Honeder a86b598f1f made the first powershell headers compile with stubs and modified coreclr headers 2015-02-13 18:14:43 -08:00
Peter Honeder 05dbe09c15 changed unit test and switched compiler to clang with libc++ 2015-02-13 14:38:40 -08:00
Peter Honeder 2cae441703 added some more checks for basic windows data types 2015-02-13 10:58:21 -08:00
Peter Honeder 3b676df8c5 added cpp unit, simple bootstrap build script, added unit test to check a few coreclr pal datatypes 2015-02-12 17:04:28 -08:00
Peter Honeder 1e91e69085 added initial empty project and .gitignore 2015-02-12 15:06:46 -08:00
Peter Honeder 81eae75cc9 initial commit with submodule setup 2015-02-12 15:01:36 -08:00