Andrew Schwartzmeyer
267dd41247
Remove ext-src/cppunit
...
Cruft fromn long ago, not necessary.
2015-11-09 13:11:24 -08:00
Andy Schwartzmeyer
a491a57e1b
Merge pull request 266 from dev/easy-shell into develop
...
Merge dev/easy-shell to develop
2015-11-09 20:12:51 +00:00
Andrew Schwartzmeyer
c09cce8d1c
Fix xUnit test target
...
POWERSHELL_HOST is gone, only POWERSHELL remains!
2015-11-06 20:35:20 -08:00
Andrew Schwartzmeyer
51c7b9339c
Fix third-party shebang test
...
Native powershell host can now be used as an interpreter for other
scripts through the hashbang/shebang directive.
2015-11-06 20:28:24 -08:00
Andrew Schwartzmeyer
aea5af000f
Remove deprecated POWERSHELL_HOST variable
2015-11-06 20:27:58 -08:00
Andrew Schwartzmeyer
390a9da072
Repin monad-native with coupled changes
2015-11-06 20:14:43 -08:00
Andrew Schwartzmeyer
0a3621b8ff
Refactor host command-line parsing
...
Supports a syntax more similar to powershell.exe on Windows, with --file
and --command options, as well as the automatic execution of a script by
name, or a command via string. Prepares for reading of stdin.
2015-11-06 20:13:47 -08:00
Andrew Schwartzmeyer
f1d1786ee3
Remove reference to deprecated scripts folder
...
And renumber list.
2015-11-06 14:02:35 -08:00
Andrew Schwartzmeyer
a879b954ac
Add note about make bootstrap
2015-11-06 11:56:55 -08:00
Andrew Schwartzmeyer
cb93392de2
Update readme
2015-11-06 11:55:50 -08:00
Andrew Schwartzmeyer
87a8ea683e
Document dependencies
2015-11-06 11:55:50 -08:00
Andy Schwartzmeyer
2569e481fb
Merge pull request 255 from dev/fixtests into develop
...
Use HOME instead of HOSTNAME for environment tests
2015-11-05 18:18:29 +00:00
Andrew Schwartzmeyer
7cda20517e
Use HOME instead of HOSTNAME for environment tests
...
Because HOSTNAME can be tricky, but HOME is always set.
2015-11-05 10:11:38 -08:00
Andy Schwartzmeyer
6b7262a0d8
Merge pull request 253 from dev/history into develop
...
Fix for history
2015-11-05 17:32:06 +00:00
Andy Schwartzmeyer
7a77539b50
Merge pull request 244 from dev/host into develop
...
Merge dev/host to develop
2015-11-05 17:16:11 +00:00
Andrew Schwartzmeyer
2557e8c278
Repin monad-native with fixes
2015-11-04 21:29:45 -08:00
Andrew Schwartzmeyer
db338c2b9a
Fix Pester tests
...
These fail with the improved console because $input is already defined.
2015-11-04 15:13:21 -08:00
Andrew Schwartzmeyer
f411d056c2
Update monad and monad-build submodules
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
392f9b0cd1
Prepend existing LD_LIBRARY_PATH
...
Though it's rarely ever set.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
bf28474f32
Fix monad-run
...
Use a non-interactive tty with monad-run, add monad-attach to run
without a tty
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
cbcf974e57
Execute *.ps1 arguments as scripts
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
f8bd1243b6
Clean up
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
391371e753
Enable PowerShell profiles
...
Added default PSL_profile.ps1 script, with rule to copy to expected
location (which is the same location of the PowerShell libraries).
Copied from Host06 example the code which loads the profile.
Made HostUtilities available to powershell.exe.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
751676e3a5
Small clean up
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
3812359153
Fix exception reporting
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
c3b6ff1b4e
Clean up main.cs
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
8dcb769bb7
Fix xUnit tests
...
Moved the xUnit tests build rules to their own Makefile, included by
monad-build/Makefile.
Temporarily introduced POWERSHELL_HOST to reenable running of
xunit.console.netcore.exe until this is built-in to the native
powershell host.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
eb816dd147
Rename ps_test to xunit-tests
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
043016e72d
Update Makefile to use powershell.exe
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
cf2a58cad9
Fix monad-build/Makefile for powershell.exe rename
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
8f9042a151
Fix host Makefile for file renames
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
a5720e9198
Remove powershell-simple from Makefile
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
d12052cdc0
Move custom host Makefile out of monad-build
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
e378bb7f7d
Rename powershell-run to host
...
Because this is our custom host for PowerShell on Linux.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
2a4c01b965
Rename powershell-run to powershell
...
It is now the only shell.
2015-11-04 15:09:29 -08:00
Andrew Schwartzmeyer
963648babe
Delete powershell-simple
...
Deprecated for powershell-run
2015-11-04 15:09:29 -08:00
Andy Schwartzmeyer
8a7eef57b6
Merge pull request 247 from dev/isexecutable into develop
...
New xunit tests for domainname and isexecutable
2015-11-03 22:07:08 +00:00
Andrew Schwartzmeyer
06be397283
Fix ConvertFrom-Csv failure
2015-11-02 15:26:14 -08:00
Andy Schwartzmeyer
337cfe552b
Merge pull request 242 from dev/console-args into develop
...
made powershell work with additional argument logic
2015-11-02 23:22:55 +00:00
Andrew Schwartzmeyer
0b6adb68ee
Use $here to avoid 'cd $(PESTER)'
...
Per the Pester examples: https://github.com/pester/Pester/blob/master/Examples/Calculator/Add-Numbers.Tests.ps1
2015-11-02 15:20:31 -08:00
Andy Schwartzmeyer
5e0982030e
Merge pull request 243 from dev/submodules into develop
...
Repin monad (and monad-ext)
2015-11-02 23:19:13 +00:00
Andrew Schwartzmeyer
1564ebc5b5
Repin monad (and monad-ext)
2015-11-02 15:12:37 -08:00
Andrew Schwartzmeyer
05f59d15b1
Untabify Json.Tests
2015-11-02 14:06:58 -08:00
Andy Schwartzmeyer
8c640e50c3
Merge pull request 241 from dev/json into develop
...
Add Json.NET Pester tests
2015-11-02 21:53:11 +00:00
Andrew Schwartzmeyer
e24f4b43a1
Update monad-native to fix Jenkins job
...
monad-native has a new target, `install` which places the native bits
into bin and lib folders, which here are prefixed to monad-linux.
Note that the location of native-tests.xml has changed so that the
monad-native Jenkins build can pick it up.
2015-10-30 18:53:48 -07:00
Andrew Schwartzmeyer
37d861f197
Add Json.NET Pester tests
2015-10-30 18:09:03 -07:00
Andy Schwartzmeyer
9b003f059c
Merge pull request 233 from dev/update-monad into develop
...
Update submodules
2015-10-30 18:55:53 +00:00
Andrew Schwartzmeyer
4c9540d777
Update submodules
...
This brings in the updates to monad-native and monad-build necessary to
bring in the updates to monad.
2015-10-30 11:16:27 -07:00
Andrew Schwartzmeyer
785e14808d
Track develop branch of monad-native
2015-10-30 10:56:31 -07:00
Andy Schwartzmeyer
576f4b9a51
Merge pull request 225 from dev/defaults into develop
...
Merge dev/defaults to develop
2015-10-28 21:21:42 +00:00
Andrew Schwartzmeyer
d92a3ea5b3
Fix distribution of .NET
...
I still really don't like copying this around, but until we get using
DNX, it's probably our best bet. Now, at least, the host can expect
lib/{powershell,coreclr}.
2015-10-28 10:04:39 -07:00
Andrew Schwartzmeyer
74b35fb6cc
Update monad submodule because of monad-native
...
monad-native develop and monad got out of sync, this fixes that
2015-10-28 00:05:11 -07:00
Andrew Schwartzmeyer
44a468a0fa
Update monad-native submodule
...
To bring in sensible default handling.
2015-10-27 23:58:08 -07:00
Andrew Schwartzmeyer
dd394a455f
Use defaults for PWRSH_ROOT and CORE_ROOT
...
This moves the PowerShell output to `lib/powershell` and copies the
.NET runtime assemblies to `lib/coreclr`.
2015-10-27 23:42:26 -07:00
Andrew Schwartzmeyer
ba97c075eb
Don't rm -rf tools on make distclean
2015-10-27 16:32:15 -07:00
Andy Schwartzmeyer
ef141c1639
Merge pull request 215 from dev/build-refactor into develop
2015-10-26 23:07:44 +00:00
Andrew Schwartzmeyer
9efedc0c07
Update monad-native submodule to merge commit
2015-10-26 16:07:17 -07:00
Andrew Schwartzmeyer
b793a07b41
Add distclean-native target
2015-10-26 12:38:34 -07:00
Andrew Schwartzmeyer
9a4c774816
Fix recursive make test targets
2015-10-26 12:30:22 -07:00
Andrew Schwartzmeyer
36189b49a9
Fix make boostrap
...
Again
2015-10-26 12:11:16 -07:00
Andrew Schwartzmeyer
a214c46735
Repin monad-native and monad-omi-provider
2015-10-26 12:10:21 -07:00
Andrew Schwartzmeyer
23c441511f
Fix PSRP OMI provider name
...
And add dependency on powershell-native
2015-10-26 12:09:53 -07:00
Andrew Schwartzmeyer
3f2ade8c25
Ignore clean failures
2015-10-26 12:09:47 -07:00
Andrew Schwartzmeyer
c8d1938b03
Enable native tests with make
2015-10-26 12:09:35 -07:00
Andrew Schwartzmeyer
03314f8382
Fix make distclean bootstrap
2015-10-26 12:01:01 -07:00
Andrew Schwartzmeyer
a023ce5a58
chmod -x monad-docker.sh
...
It has function definitions and should be sourced, not executed.
2015-10-25 22:31:38 -07:00
Andrew Schwartzmeyer
d4747c9213
Fix clean target
2015-10-25 22:31:31 -07:00
Andrew Schwartzmeyer
3fb6d65770
Remove deprecated scripts directory
...
Shell-in-a-box Docker container might come back in the future.
2015-10-25 22:30:10 -07:00
Andrew Schwartzmeyer
aba1eb283b
Update submodules
2015-10-25 22:25:05 -07:00
Andrew Schwartzmeyer
7a0313aa4f
Add note on various tracing options
2015-10-25 22:25:05 -07:00
Andrew Schwartzmeyer
da64019f00
Add more clean targets
2015-10-25 22:25:05 -07:00
Andrew Schwartzmeyer
587dda00e8
Add PSRP and OMI building
...
Removed OMI test targets as they can be run directly from the OMI
folder, and there is a separate Jenkins job that does so.
2015-10-25 22:20:37 -07:00
Andrew Schwartzmeyer
bb577c8898
Fix IsHardLink() unit tests
...
Our API as written says a file with no other links to it is not a
hardlink, and a file with multiple links to it is a hardlink. Corrected
one test and added an additional.
2015-10-25 22:20:37 -07:00
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