Commit Graph
55 Commits
Author SHA1 Message Date
Peter Honeder f7fa83fdf3 hardcoded .net dependency versions 2015-07-29 16:55:23 +02:00
Peter Honeder 7455b16d5d changed build and dependency paths 2015-07-29 16:37:50 +02:00
Peter Honeder 2f01033e94 moved TypeCatalogGen.exe and its dependencies into buildtemp 2015-07-29 16:16:09 +02:00
Andrew Schwartzmeyer b020c4b41f Enable xUnit unit test coverage results in XML 2015-07-21 11:18:15 -07:00
Andrew Schwartzmeyer 5a596e8029 Run pester-tests also on make test
Fixes #113
2015-07-21 09:10:09 -07:00
Andrew Schwartzmeyer 694320b656 Unit tests use xUnit runner and [Fact] declaration
- Workaround test executable is now completely removed
- make test also depends on $(RUN_TARGETS)
2015-07-20 15:31:03 -07:00
Andrew Schwartzmeyer b055743728 Makefile target test uses the xUnit runner
Instead of the prior work-around.

Makefile target `internal-prepare-exec-env` was modified to create
`exec_env/testrun` and depend on `dotnetlibs/corerun` (on which it
already depended).
2015-07-20 15:24:56 -07:00
Peter Honeder 849529c33a download latest nuget automatically 2015-07-16 14:04:10 -07:00
Peter Honeder 061c8543ea removed monad_app_base submodule because it's not needed anymore 2015-07-15 18:36:43 -07:00
Peter Honeder dc63c5cc4f Merge pull request 62 from dev/100-add-pester-to-make-test into dev/101-docker-port-url 2015-07-13 20:43:07 +00:00
Peter Honeder 9081f51942 added another make message to output username and password 2015-07-13 13:41:40 -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 aa0c778ca9 fixed container-relative port 2015-07-13 13:08:47 -07:00
Peter Honeder 46e97da0f9 made docker port configurable and output URL at end of build 2015-07-13 11:55:18 -07:00
Peter Honeder b96f4264e2 Merge pull request 60 from dev/95-get-pester-running into develop 2015-07-13 18:19:35 +00:00
Peter Honeder 0e12ab46e3 add pester to Makefile, re-pin to latest monad fixes 2015-07-10 11:35:26 -07:00
Andrew Schwartzmeyer d914d92780 Add Security module Makefile target
Also updated dependencies to build it
2015-07-09 16:03:50 -07:00
Andrew Schwartzmeyer 6790a56eed Fix COMMAND_UTILTITY typo 2015-07-09 16:01:03 -07:00
Peter Honeder 0546b02e1c added --file parameter to run a script 2015-07-07 18:02:04 -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
Peter Honeder 1271569f52 forcing shellinaboxd port to 4201 2015-06-25 16:52:12 -07:00
Peter Honeder bc5eb7613b changed caching to off 2015-06-25 14:19:51 -07:00
Peter Honeder b531c3af7e removed sudo from docker calls, requires group membership now 2015-06-18 14:50:59 -07:00
Peter Honeder 0cd34830b1 Dockerfile and Makefile cleanup 2015-06-18 13:06:17 -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 de2ccdb749 Merge branch 'develop' into dev/59-run-test
Fix merge conflict
2015-06-12 10:04:28 -07:00
Andrew Schwartzmeyer f04ceeef00 Rename run-test target to test
Since `make test` is usually expected for running unit tests
2015-06-12 09:52:38 -07:00
Andrew Schwartzmeyer 7088108923 Add dependency to run-test needed for teardown 2015-06-12 09:51:58 -07:00
Andrew Schwartzmeyer cd0d85049c Factor run-test dependencies out of Makefile
- tests.mk includes all test related code except run-test target
- run-test moved after run target
- TEST_SRCS uses wildcard to collect files
- dotnetlibs/xunit* uses wildcard to copy dependencies for monad-ext
  - not %.dll because of the soon to be used xunit.console.netcore.exe
2015-06-12 08:40:40 -07:00
Peter Honeder bc32ce4bb1 Merge pull request 30 from dev/57-prefix-internal-rules into develop 2015-06-11 23:57:57 +00: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
Peter Honeder 75f266ba10 added internal- prefix 2015-06-11 14:19:24 -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 299083e1ed updated makefiles to newly generated versions of linux-only makefiles without the windows build rules, removed hack from master Makefile 2015-06-10 13:24:30 -07:00
Peter Honeder bfaca4ece6 Merge branch 'dev-build' into use-roslyn
Conflicts:
	scripts/Makefile
2015-06-10 11:57:40 -07:00
Peter Honeder 0bbd43e3bf renamed ps_hello_world.exe to powershell-run.exe 2015-06-10 11:45:37 -07:00
Peter Honeder 8180607684 Merge branch 'dev-build' into use-roslyn
Conflicts:
	scripts/Makefile
2015-06-10 11:24:51 -07:00
Peter Honeder 4d273e71cc adding and changing rules to use the roslyn compiler instead of mcs for the PS code 2015-06-10 11:12:08 -07:00
Peter Honeder ba1df345fc cleanup of Makefile 2015-06-10 11:11:41 -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 f8189924e9 using management-infrastructure.mk instead of wmi-sources.mk 2015-06-04 12:41:18 -07:00
Peter Honeder 7193ae5fda added prepare rule as a hack to have correct timestamps for make for now 2015-06-03 16:49:46 -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