Andrew Schwartzmeyer
986740295f
Add monad-build submodule
2015-10-25 22:20:37 -07:00
Andrew Schwartzmeyer
3a9e979e8f
Add Pester tests
2015-10-25 22:20:37 -07:00
Andrew Schwartzmeyer
4a11135994
Note that hashbang needs to be fixed
2015-10-25 20:51:16 -07:00
Andrew Schwartzmeyer
a3aa2f56a0
Export POWERSHELL_SIMPLE variable
2015-10-25 20:46:31 -07:00
Andrew Schwartzmeyer
3ca864660b
Update library names
...
- libps to libpsnative
- ps_test to PowerShell.Linux.Test
2015-10-25 20:38:39 -07:00
Andrew Schwartzmeyer
16a2ae2fa8
Start build refactor with top-level Makefile
...
- Recursively calls make in monad-linux and monad-build
- Eventually will deprecate scripts dir
- Makes monad-docker.sh shareable
2015-10-25 20:37:36 -07:00
Andrew Schwartzmeyer
0da23d5b5c
Update readme
2015-10-23 16:09:07 -07:00
Andy Schwartzmeyer
317aa750a2
Merge pull request 207 from dev/set-location into develop
2015-10-23 22:50:47 +00:00
Andy Schwartzmeyer
f7fb2d920c
Merge pull request 209 from dev/validate-pester into develop
2015-10-23 22:36:17 +00:00
Andrew Schwartzmeyer
6ee20b8f71
Fix startDirectory
...
Needed to move initial tests below the assignment
2015-10-23 15:33:32 -07:00
Andrew Schwartzmeyer
b1cceeaa78
Ignore dirty pester submodule
...
The pester-self-tests leave behind unignored artifacts
2015-10-23 15:03:43 -07:00
Andrew Schwartzmeyer
b0dd714a1b
Fix some Pester self-tests
2015-10-23 15:01:42 -07:00
Andrew Schwartzmeyer
5809a2bad3
Add $(SCRIPTS) variable
2015-10-23 14:50:41 -07:00
Andy Schwartzmeyer
3884de80d1
Merge pull request 208 from dev/host_cmdline into develop
2015-10-23 20:33:37 +00:00
Andrew Schwartzmeyer
b98245d6fe
Update monad-native submodule
2015-10-23 12:27:58 -07:00
Andrew Schwartzmeyer
045c4bc271
Remove -alc from host_cmdline arguments
2015-10-23 12:25:21 -07:00
Andrew Schwartzmeyer
ddfa85b312
Use PWRSH_ROOT instead of -tpa
2015-10-23 12:25:21 -07:00
Andrew Schwartzmeyer
f9217fdd11
Use CORE_ROOT instead of -c
2015-10-23 12:23:13 -07:00
Andy Schwartzmeyer
4117040081
Merge pull request 206 from dev/rename-pester-tests into develop
2015-10-23 00:24:36 +00:00
Andy Schwartzmeyer
22df4053e8
Merge pull request 203 from dev/submodules into develop
2015-10-22 23:53:35 +00:00
Andrew Schwartzmeyer
589217fea7
Update cppunit and pester
2015-10-22 09:47:54 -07:00
Andrew Schwartzmeyer
fe95138485
Pin monad and pester submodules to develop branchs
...
This only affects updating with `git submodule update --remote`, which
will fetch and checkout the corresponding branch (defaulting to master
for most of our submodules) instead of the recorded commit.
Note that the submodule will still be checked out to a detached head, as
it should be.
2015-10-22 09:15:22 -07:00
Andy Schwartzmeyer
4ca47b3746
Merge pull request 199 from dev/move-monad into develop
2015-10-21 20:44:50 +00:00
Andrew Schwartzmeyer
c0293f1175
Move monad to msostc
...
Run `git submodule sync` to update monad's remote.
diff --git c/.gitmodules i/.gitmodules
index 61529ee9f..3794c1aa8 100644
--- c/.gitmodules
+++ i/.gitmodules
@@ -1,6 +1,6 @@
[submodule "src/monad"]
path = src/monad
- url = https://microsoft.visualstudio.com/DefaultCollection/PowerShell.Monad/_git/monad-sync1
+ url = https://msostc.visualstudio.com/DefaultCollection/PS/_git/monad
[submodule "ext-src/cppunit"]
path = ext-src/cppunit
url = git://anongit.freedesktop.org/git/libreoffice/cppunit/
2015-10-21 12:37:59 -07:00
Andy Schwartzmeyer
dc50755f91
Merge pull request 197 from dev/repin-monad into develop
2015-10-21 16:12:39 +00:00
Andrew Schwartzmeyer
9bd75bf60c
Repin monad submodule
...
Still on microsoft.visualstudio.com, but repinned to latest fixes on
develop branch.
2015-10-20 16:03:02 -07:00
Andy Schwartzmeyer
88aa64538a
Merge pull request 196 from dev/fix-hashbang into develop
2015-10-20 22:57:42 +00:00
Andrew Schwartzmeyer
91cf0e8c76
Make runps-file to use runps-simple & script.ps1
...
Works much better. Removes dependency on `--file` switch in our
executable (which is not a PowerShell thing) and instead uses the
canonical method of launching a script/executable in PowerShell (the
ampersand). Coincidentally, this now makes the output not depend on a
TTY, and so `monad-run make hashbang-tests` now works as expected.
2015-10-20 15:34:21 -07:00
Andrew Schwartzmeyer
aa7094bdb8
Fix bug in hashbang-tests target
2015-10-20 15:34:21 -07:00
Andy Schwartzmeyer
042f6067dc
Merge pull request 195 from dev/import-csv into develop
2015-10-20 22:12:15 +00:00
Andrew Schwartzmeyer
30b2c1fe37
Fix pester-tests relative file handling
...
- `APP_BASE` was made into an absolute path
- `%.ps1` target now runs without `--file` but instead with `&`
- ^ also cd's into pester-tests first
2015-10-20 15:10:04 -07:00
Andrew Schwartzmeyer
67deba1a2a
Rename TestAssets to assets
2015-10-20 14:55:12 -07:00
Andy Schwartzmeyer
7a53bec10e
Merge pull request 193 from dev/console-monad-linux into develop
2015-10-20 19:08:18 +00:00
Andy Schwartzmeyer
83bf438b17
Merge pull request 191 from dev/omi-build into develop
2015-10-20 19:05:03 +00:00
Andrew Schwartzmeyer
dd9cc98b0f
Repin monad-native with library refactor
2015-10-20 11:58:43 -07:00
Andy Schwartzmeyer
0752e62be1
Merge pull request 192 from dev/Get-Random2 into develop
2015-10-20 03:25:12 +00:00
Andrew Schwartzmeyer
6a4a2bcf07
Teach Git to ignore indicationlog
...
Test output from OMI
2015-10-19 17:11:12 -07:00
Andrew Schwartzmeyer
db5bf0fc14
Update omi's gitignore
2015-10-19 17:09:29 -07:00
Andrew Schwartzmeyer
8ee52313d2
Update OMI build so Make is always called
2015-10-19 17:06:16 -07:00
Andy Schwartzmeyer
13ff064f68
Merge pull request 186 from dev/console into develop
2015-10-19 19:33:56 +00:00
Andrew Schwartzmeyer
1c067b2017
Remove Console.WriteLine(HandleControlC)
...
Ctrl-C works. If a command is running, it stops it and returns. If one
is not running, it seems to "suspend" the readline until enter is
pressed again.
2015-10-16 17:02:59 -07:00
Andrew Schwartzmeyer
06ea0b50c8
Remove deprecated init() function
2015-10-16 16:21:18 -07:00
Andrew Schwartzmeyer
556bdda1c7
Change console prompt
2015-10-16 16:17:44 -07:00
Andrew Schwartzmeyer
a1009ffd4a
Fix build of monad-native
...
Moved recursive make into phony target. This is okay because the called
make does not rebuild things. The calling make no longer flails about
when trying to make the three monad-native targets.
2015-10-16 14:37:46 -07:00
Andrew Schwartzmeyer
9d832b4b6d
Fix TypeCatalogGen.exe dependencies
...
NuGet packages referenced as dependencies needed to depend on buildtemp
as well.
2015-10-16 14:37:18 -07:00
Andrew Schwartzmeyer
61222055a6
Ignore errors from clean targets
2015-10-16 12:28:59 -07:00
Andrew Schwartzmeyer
f724203825
Add cleaning targets for PSRP
2015-10-16 12:25:17 -07:00
Andrew Schwartzmeyer
39a89925e0
Fix OMI dependency for provider
2015-10-16 12:24:48 -07:00
Andrew Schwartzmeyer
36ff3d0678
Add OMI targets to Makefile
...
Recursively builds OMI and the TestShell provider. The OMI tests
currently do not pass and so have not been added to `make test`.
2015-10-16 11:43:28 -07:00
Andrew Schwartzmeyer
714f5e5fe3
Update readme
2015-10-15 16:28:40 -07:00
Andy Schwartzmeyer
f988e7ba3a
Merge pull request 178 from develop into master
2015-10-15 22:50:59 +00:00
Andy Schwartzmeyer
23628d7710
Merge pull request 183 from dev/omi into develop
2015-10-15 22:50:17 +00:00
Andrew Schwartzmeyer
2473bf0ce4
Add src/omi submodule at OMI-Shell/OMI-PSRP-Support
2015-10-15 13:53:42 -07:00
Andrew Schwartzmeyer
f6e6a75cf5
Add src/monad-omi-provider
2015-10-15 13:50:03 -07:00
Andy Schwartzmeyer
0496ff3cd2
Merge pull request 182 from dev/select-object into develop
2015-10-15 20:12:36 +00:00
Andy Schwartzmeyer
461008b0ba
Merge pull request 181 from dev/rebuild into develop
2015-10-15 17:11:20 +00:00
Andrew Schwartzmeyer
49a2b29b03
Clean up cruft
2015-10-14 22:41:00 -07:00
Andrew Schwartzmeyer
6c47d78821
Refactor exec_env setup, can now build in parallel
...
With dependencies setup correctly, `make -j` now works as
expected. `prepare` target came back under a new role, to setup the
application base and CoreCLR in the execution environment.
Note that `$(APP_BASE)` is a phony target because we always want a clean
deployment. Cannot `rm -rf exec_env` because it conflicts with
`$(CORECLR)` when run in parallel.
2015-10-14 22:40:52 -07:00
Andrew Schwartzmeyer
c8f76b6281
Factor out relative paths in Makefile
...
They make for terrible headaches.
2015-10-14 19:31:22 -07:00
Andrew Schwartzmeyer
f5fcc96562
Fix missing dependency for PowerShell.Security.dll
2015-10-14 19:13:45 -07:00
Andrew Schwartzmeyer
504d2c327e
Refactor xUnit build
...
`ps_test.dll` is now built in dotnetlibs, and copied along with xUnit
libraries during `internal-prepare-exec_env`.
Build process now creates things only as needed.
2015-10-14 14:17:34 -07:00
Andrew Schwartzmeyer
a6006be854
Move libps build out of buildtemp
2015-10-14 14:05:52 -07:00
Andrew Schwartzmeyer
304df08fd7
Refactor use of dotnetlibs for reduced rebuilding
...
Also cleaned up Makefiles. Added `scripts/dotnetlibs` back to Git so
Make doesn't ever have to create it (now I understand Peter's reasoning
here).
2015-10-14 14:03:01 -07:00
Andrew Schwartzmeyer
5d9c7c6d5f
Refactor prepare target for non-phony buildtemp
...
- buildtemp, being non-phony, won't cause a recompilation every run
- rearranged where appropriate for better use of $<
2015-10-14 09:59:11 -07:00
Andrew Schwartzmeyer
3f82f7a4fb
Remove PRODUCT_BASE_REFS
2015-10-14 08:58:16 -07:00
Andrew Schwartzmeyer
2657db7278
Fix IMPERSONATE=false
2015-10-14 08:58:01 -07:00
Andy Schwartzmeyer
41e67ea486
Merge pull request 180 from dev/tests into develop
2015-10-14 03:14:38 +00:00
Andrew Schwartzmeyer
8f39b0a809
Rename XML test results
2015-10-13 19:57:51 -07:00
Andrew Schwartzmeyer
34dcc5c059
Enable XML output for native tests
2015-10-13 19:48:58 -07:00
Andrew Schwartzmeyer
72e9a1fed0
Add pestertests.xml to cleanall target
2015-10-13 19:46:05 -07:00
Andy Schwartzmeyer
fcaca3ac7c
Merge pull request 179 from dev/pester-xml into develop
2015-10-14 01:49:11 +00:00
Andrew Schwartzmeyer
87988c7bea
Enable XML output for Pester
...
- Taught Git to ignore XML output
- Updated Pester submodule with fixes
- Enabled reporting in Pester Makefile target
2015-10-13 15:25:39 -07:00
Andy Schwartzmeyer
f98303d2bb
Merge pull request 176 from dev/make into develop
2015-10-13 21:24:17 +00:00
Andrew Schwartzmeyer
acce65c680
Add basic Hello World program for easier testing
...
We can use this to assert simple things about .NET Core (our build in
particular) for easier debugging.
2015-10-13 14:19:20 -07:00
Andrew Schwartzmeyer
3284c33f85
Fix "Hello World" target
2015-10-13 13:45:27 -07:00
Andrew Schwartzmeyer
e483e449ad
Add build.sh back as wrapper to monad-run
...
Fixes CI and lets us remove it at a later date.
2015-10-13 13:39:52 -07:00
Andrew Schwartzmeyer
16db74fb3e
Build from scripts again
2015-10-13 13:37:06 -07:00
Andrew Schwartzmeyer
e95b3dc801
Fix mkdir
2015-10-13 13:35:06 -07:00
Andrew Schwartzmeyer
9b0ef11e2f
Add "Hello World" exe target
...
Compile with monad-run make HelloWorld.exe, given a HelloWorld.cs. Will
compile with our .NET Core, and output how to run. Does not support
multiple files.
2015-10-13 12:55:38 -07:00
Andy Schwartzmeyer
0b755aa906
Merge pull request 177 from dev/runtime into develop
2015-10-13 16:58:59 +00:00
Andrew Schwartzmeyer
487f7a5034
Remove workaround for missing Reflection.Metadata
...
- monad-ext updated to contain missing libraries
- monad updated to remove workaround
2015-10-12 21:26:53 -07:00
Andrew Schwartzmeyer
53cb7f8ffa
Alias shell to run-interactive
2015-10-12 20:49:03 -07:00
Andrew Schwartzmeyer
80bc66eaaa
Remove deprecated scripts
2015-10-12 20:49:03 -07:00
Andrew Schwartzmeyer
0d4ebb38b8
Replace docker build scripts
...
Import the functions into your shell, `source scripts/monad-docker.sh`,
then run `monad-run make test` or `monad-tty make run-interactive` from
`monad-linux`. Top level `Makefile` passes to `scripts/Makefile`.
2015-10-12 20:49:03 -07:00
Andy Schwartzmeyer
1f63da09a4
Merge pull request 175 from dev/clean-cliargv into develop
2015-10-09 23:10:35 +00:00
Andrew Schwartzmeyer
9270e0b9eb
Implement simpler use of CommandLineToArgv
...
Reduced code churn from monad's master branch (aka Source Depot)
2015-10-09 16:02:11 -07:00
Andrew Schwartzmeyer
4fbb772ecf
Some readme cleanups
2015-10-08 13:44:37 -07:00
Andrew Schwartzmeyer
5f57f76a6a
Update readme
2015-10-08 13:25:59 -07:00
Andy Schwartzmeyer
9152a8bc60
Merge pull request 169 from dev/cache-nuget into develop
2015-10-07 22:49:34 +00:00
Andrew Schwartzmeyer
9124e4a328
Cache nuget.exe in scripts
...
Rather than downloading nuget.exe on every run, we can cache it, just
not in monad-ext with a rule to copy it. Instead, there's a rule to
refresh it from its canonical home.
See http://dist.nuget.org/index.html
2015-10-07 15:36:40 -07:00
Andy Schwartzmeyer
4682b26c08
Merge pull request 168 from dev/clean-up-makefile into develop
2015-10-07 20:34:28 +00:00
Andrew Schwartzmeyer
008f1ac4a3
Clean up Makefile
...
- Use explicit versions of NuGet packages
- Removed cruft
- Use MONO_PATH over cp
- Remove nuget.exe on cleanall
- Patch version bump of Reflection.Metadata and Collections.Immutable
2015-10-07 13:05:58 -07:00
Andrew Schwartzmeyer
bbdc3de691
Use nuget -restore functionality
...
- Download nuget.exe from its official home
- Remove beta nuget.exe from monad-ext
- Specify dependencies in packages.config and use nuget.exe -restore
- Add prepare dependency to package libraries
- No more manual prepare step
- Update .gitignore
2015-10-06 21:55:21 -07:00
Andrew Schwartzmeyer
0c6a7616fc
Update Roslyn compiler
...
Prior package was last updated 2015-05-20 and was prerelease. New
package is stable at 1.0.0 from 2015-07-13.
https://www.nuget.org/packages/Microsoft.Net.Compilers/
2015-10-06 21:26:48 -07:00
Andrew Schwartzmeyer
1b1cfe4602
Improve lipbs build
...
- Use $(MAKE) -C like the good developers intended
- Use -j flag for practically instant libps compilation
- DRY the dependencies and copies
2015-10-06 21:16:59 -07:00
Andrew Schwartzmeyer
26a1bfb696
Improve make clean, cleanall, clean-native
...
- Use clean-native to clean the native library
- Remove buildtemp and dotnetlibs from Git, mkdir on demand
2015-10-06 21:16:34 -07:00
Andrew Schwartzmeyer
bf930abb96
Update CoreCLR/CoreFX to TFS build 23214
...
- Repins monad-ext to master, which was reset to the CoreCLR/FX update.
- Fixes Makefile for restructuring of monad-ext/coreclr
- Repins monad with fix for lack of System.Reflection.Metadata
- Updates build mapping for repin of monad
2015-10-06 18:38:48 -07:00
Andrew Schwartzmeyer
9421c0f3a5
Update monad submodule to master
...
Includes updated .gitignore
2015-10-06 15:10:18 -07:00
Andrew Schwartzmeyer
5f8196cca6
Ignore .bash_history from Docker
2015-10-06 15:09:44 -07:00
Andrew Schwartzmeyer
b9e313a3ba
Use bash, not sh
2015-10-02 12:08:12 -07:00