Commit Graph
76 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer f163808eac Swap {} for () in Makefile
Parentheses are more portable. There was an inconsistent mix of
parentheses and curly braces.
2015-09-03 14:55:21 -07:00
Andy Schwartzmeyer 54b2435811 Merge pull request 142 from dev/199-security into develop 2015-09-03 21:34:59 +00:00
Andrew Schwartzmeyer 562a9bb35b Add Security.dll reference for Commands.Management.dll
While enabling previously disabled code in `cimConverter.cs`, it was
revealed that `Microsoft.PowerShell.Commands.Management.dll` has a
dependency on `Microsoft.PowerShell.Security.dll` for the type
`SecurityDescriptorCommandsBase`.
2015-09-03 14:31:46 -07:00
Peter Honeder 84d58714fc added a simple test that creates a full PS Runspace and executes a script 2015-09-03 21:43:17 +02:00
Andrew Schwartzmeyer 8c80840d69 Make path relative to monad-linux/scripts
Since that's where the Makefile lives
2015-09-01 14:08:04 -07:00
Andrew Schwartzmeyer a7010cd742 Add make script.ps1 target for easy testing
Use like `make src/pester-tests/Test-Split-Path.Tests.ps1`
2015-09-01 13:55:54 -07:00
Andrew Schwartzmeyer f648656cc1 Refactor test targets 2015-08-28 21:18:58 -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
Andrew Schwartzmeyer c9e1b6cbb1 Use NuGet APIv3 2015-08-11 08:56:29 -07: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
Peter Honeder dc878906a8 Merge pull request 105 from dev/130-move-libps-build-to-buildtemp into develop 2015-08-03 08:18:16 +00:00
Peter Honeder 66d2c7f35d Makefile changes to move libps-build into buildtemp sub directory 2015-07-31 16:46:40 +02:00
Peter Honeder f2fd9ca303 enabled hash bang support, fixed run scripts to not alter the current working directory 2015-07-31 00:47:22 +02:00
Peter Honeder 56ae9e5ebd changed Dockerfile to support updated directory structure in exec_env, added copy command to copy missing libps.so for run targets 2015-07-30 18:47:25 +02:00
Peter Honeder ed93168e5e refactored Makefile run targets, added helper scripts for powershell-simple, changed how PS is invoked to solve issue #122, moved dlls for PowerShell away from CoreCLR, re-pinned to latest monad and monad-native fixes, added UnmanagedMain entry point for powershell-run.exe 2015-07-30 16:57:32 +02:00
Peter Honeder 5e68effa29 added host_cmdline to RUN_TARGETS 2015-07-29 17:31:38 +02:00
Peter Honeder b0f73c085a changed back make targets, changed existing make targets to new custom hosting for powershell-simple.exe 2015-07-29 17:31:38 +02:00
Peter Honeder 543649c7fd cleaned up Makefile 2015-07-29 17:31:38 +02:00
Peter Honeder c080f351ea re-pin to latest native host implementation, changed managed code signature 2015-07-29 17:31:38 +02:00
Peter Honeder 72bcbd9eea initial version of custom hosting code 2015-07-29 17:31:24 +02:00
Peter Honeder a31af1e301 using nuget 3 because it's much faster, re-pin to monad-ext containing nuget.exe, hardcoded c# compiler toolchain version too 2015-07-29 17:01:25 +02:00
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