Commit graph

4172 commits

Author SHA1 Message Date
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