Commit graph

7945 commits

Author SHA1 Message Date
Zachary Folwick
1d447bd470 updating branch
Merge branch 'develop' of mshttps://msostc.visualstudio.com/DefaultCollection/PS/_git/monad-linux into dev/171-environmental-variable-test-bug
2015-08-24 13:05:16 -07:00
Zachary Folwick
972734cbc8 Merge branch 'develop' of mshttps://msostc.visualstudio.com/DefaultCollection/PS/_git/monad-linux into dev/112-split-path-pester
Conflicts:
	src/monad
2015-08-24 11:48:22 -07:00
Zachary Folwick
4ded5c5cd9 added environment variable tests 2015-08-24 11:38:32 -07:00
Zachary Folwick
adb2e66c91 removed typos 2015-08-24 10:06:48 -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
440cf6a236 Remove type_name and function_name from host
Custom hosting code was refactored to take a path to an assembly instead
of an assembly name coupled with a type and function to
execute. Instead, the host now directly executes the given assembly,
calling its Main function.

The path is resolved relative to the current directory, as should be
expected.
2015-08-21 17:39:52 -07:00
Andrew Schwartzmeyer
42ce3fa48b Remove type_name and function_name from host
Custom hosting code was refactored to take a path to an assembly instead
of an assembly name coupled with a type and function to
execute. Instead, the host now directly executes the given assembly,
calling its Main function.

The path is resolved relative to the current directory, as should be
expected.
2015-08-21 17:39:52 -07:00
Andy Schwartzmeyer
1a34c0de9a Merge pull request 123 from dev/123-main into develop 2015-08-21 23:28:32 +00:00
Andy Schwartzmeyer
9f2fdfeb2d Merge pull request 123 from dev/123-main into develop 2015-08-21 23:28:32 +00:00
Andrew Schwartzmeyer
5d117330a8 Call into Main of PowerShell assembly
Instead of UnmanagedMain. Requires patch to CoreCLR (submitted upstream
but backported until we've integrated their work).
2015-08-21 16:17:16 -07:00
Andrew Schwartzmeyer
46d3894c02 Call into Main of PowerShell assembly
Instead of UnmanagedMain. Requires patch to CoreCLR (submitted upstream
but backported until we've integrated their work).
2015-08-21 16:17:16 -07:00
Peter Honeder
4ffb564dbd added testing code to call into Main 2015-08-21 16:16:38 -07:00
Peter Honeder
24f0f853a8 added testing code to call into Main 2015-08-21 16:16:38 -07:00
Zachary Folwick
8091785240 Fixed whitespace and directory test assertions 2015-08-21 15:57:34 -07:00
Zachary Folwick
95e932d6d0 removed AfterEach block because it's not required 2015-08-21 15:51:27 -07:00
Zachary Folwick
632a11a6c6 fixed typo using parent switch 2015-08-21 14:58:34 -07:00
Zachary Folwick
8458e5779e brought in submodule changes and modded test to not expect the / to be removed in the path 2015-08-21 14:34:00 -07:00
Aaron Katz
c5be936efa Merge pull request 102 from dev/9-getcomputername into develop 2015-08-21 16:56:54 +00:00
Aaron Katz
aba54f074d Merge pull request 102 from dev/9-getcomputername into develop 2015-08-21 16:56:54 +00:00
Aaron
e1d4d14028 made changes based on feedback from pull request 2015-08-21 09:55:39 -07:00
Aaron
23ad440cfc made changes based on feedback from pull request 2015-08-21 09:55:39 -07:00
Aaron
50f9af1bd3 changes back on feedback from pull request 2015-08-20 14:40:02 -07:00
Aaron
ca4504ec0a changes back on feedback from pull request 2015-08-20 14:40:02 -07:00
Zachary Folwick
4f4cbbac2e added tests to get working in linux 2015-08-20 11:49:01 -07:00
Zachary Folwick
d8996b2bf7 added pester tests for out-file and got running in linux 2015-08-19 14:13:15 -07:00
Aaron
f62c92432b Added changed from feedback from Andy 2015-08-17 17:02:40 -07:00
Aaron
e4fd76b739 Added changed from feedback from Andy 2015-08-17 17:02:40 -07:00
Zachary Folwick
2689741ddc added support for PSL to remove qualifiers correctly 2015-08-17 15:07:00 -07:00
Zachary Folwick
4862e6cfd8 added more tests to more thoroughly test split-path 2015-08-17 15:03:14 -07:00
Aaron
d7355a0572 implemented suggested changes based off of feedback 2015-08-14 12:26:15 -07:00
Aaron
d2f7ba1cb4 implemented suggested changes based off of feedback 2015-08-14 12:26:15 -07:00
Aaron
4f62559eaf Merge remote-tracking branch 'origin/develop' into dev/8-getcpinfo 2015-08-14 11:34:48 -07:00
Aaron
d627dac5e8 Merge remote-tracking branch 'origin/develop' into dev/8-getcpinfo 2015-08-14 11:34:48 -07:00
Aaron
18e8bb1dfa No longer defining LPSTR 2015-08-14 11:27:22 -07:00
Aaron
2241d63a28 No longer defining LPSTR 2015-08-14 11:27:22 -07:00
Aaron
df8ab7f662 Changes to make converting beteween UTF8 and UTF16 2015-08-14 10:51:25 -07:00
Aaron
1a796b5924 Changes to make converting beteween UTF8 and UTF16 2015-08-14 10:51:25 -07:00
Aaron
53e7c11e69 Added changes based of feedback from Peter 2015-08-14 09:26:45 -07:00
Aaron
427cce83f0 Added changes based of feedback from Peter 2015-08-14 09:26:45 -07:00
Andrew Schwartzmeyer
9164baa9c4
Use libicu properly in tests 2015-08-13 21:34:59 -07:00
Andrew Schwartzmeyer
d298302e8c Use libicu properly in tests 2015-08-13 21:34:59 -07:00
Andrew Schwartzmeyer
8fdfeb250d
Use libicu properly for UTF-16 conversion
- No more messy calculations
- Only one include, not four
- No resizing
- No memcpy
- Faster because of fromUTF8()
2015-08-13 21:27:08 -07:00
Andrew Schwartzmeyer
60a9a360a1 Use libicu properly for UTF-16 conversion
- No more messy calculations
- Only one include, not four
- No resizing
- No memcpy
- Faster because of fromUTF8()
2015-08-13 21:27:08 -07:00
Andrew Schwartzmeyer
77f9757a05
Use known size instead of calculation 2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
70a163e061 Use known size instead of calculation 2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
fd8352c469
Use just LOGIN_NAME_MAX
The +1 is unnecessary since LOGIN_NAME_MAX includes null.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
674ca43046 Use just LOGIN_NAME_MAX
The +1 is unnecessary since LOGIN_NAME_MAX includes null.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
c6aa25acd5
Use length() instead of size()
To be consistent with everything else.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
db7117bd47 Use length() instead of size()
To be consistent with everything else.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
91345a149e
Use 0 instead of '\0'
To be consistent with tests
2015-08-13 20:32:30 -07:00