Commit Graph
305 Commits
Author SHA1 Message Date
George Fleming f2b70e32ba Remove microsecond 2015-11-13 10:05:55 -08:00
George Fleming f1c8f15fb5 SetDate function 2015-11-12 16:31:30 -08:00
Andy Schwartzmeyer 07a2f9fe80 Merge pull request 265 from dev/defaulthost into develop
Merge dev/defaulthost to develop
2015-11-09 21:03:57 +00:00
Andrew Schwartzmeyer ed5e179e79 Merge branch 'develop' into dev/limits 2015-11-09 09:51:06 -08:00
Andrew Schwartzmeyer 3bdcf50465 Use HOST_NAME_MAX as specified in gethostname(2)
NAME_MAX is the "maximum number of bytes in a filename," which is
irrelevant to the gethostname libc function.
2015-11-09 09:46:53 -08:00
Andrew Schwartzmeyer 22cc11e2d9 Rename appDomainFriendlyName to psl_cmdline_host 2015-11-06 20:01:41 -08:00
Andrew Schwartzmeyer 48af92c286 Update usage text 2015-11-06 20:01:29 -08:00
Andrew Schwartzmeyer 0e119de0c9 Refactor argument parsing for new interface
Only one argument is accepted by the native host, which is an optional
path to a managed host assembly (aka the PowerShell console). If not
specified, lib/powershell/powershell.exe is used by default. All other
arguments are forwarded as-is to the managed host.
2015-11-06 19:59:04 -08:00
Andrew Schwartzmeyer 96cda45f34 Expose pshost's pwrshPath (PowerShell libraries)
It's the determined path of the PowerShell libraries (whether specified
via PWRSH_ROOT or found relative to the native bin/powershell
executable). Like exePath, this is available only after a call to
startCoreCLR.
2015-11-06 19:55:19 -08:00
Andy Schwartzmeyer 6933f1d817 Merge pull request 263 from wip/werror into develop
Added -Werror to treat all warnings as errors to monad-native CMake
2015-11-06 23:24:08 +00:00
Alex Jordan 9c6edbc7a1 Added -Werror to treat all warnings as errors to monad-native CMake 2015-11-06 23:03:45 +00:00
Andy Schwartzmeyer 99485dea3e Merge pull request 252 from dev/fixgetcomputername into develop
Merge dev/fixgetcomputername to develop
2015-11-05 05:25:16 +00:00
Andrew Schwartzmeyer 8c9c9b2284 Fix username tests by checking for null 2015-11-04 21:22:55 -08:00
Andrew Schwartzmeyer d5c0ad08cb Fix test since gethostname gets the nodename
The nodename is not necessarily the short name returned by hostname.
2015-11-04 20:30:52 -08:00
George Fleming dfea2bf927 Further cleanup of pal.h 2015-11-04 08:53:54 -08:00
George Fleming cec13f438c Merge pull request 245 from dev/isexecutable-native into develop
Merge dev/isexecutable-native to develop
2015-11-03 22:02:05 +00:00
George Fleming 102f6163a1 Remove unnecessary code 2015-11-03 12:24:36 -08:00
George Fleming 8747ba1e47 Clean up of pal.h 2015-11-03 12:24:36 -08:00
George Fleming 43f2d476f5 New IsExecutable function 2015-11-03 12:24:36 -08:00
Andrew Schwartzmeyer 9bb5b7e52c Use make install target
Instead of manually and always resolving to monad-linux/{bin,lib}, we
use the CMake `install()` command to generate a `make install` target
which places powershell, libpshost, and libpsnative in
${CMAKE_INSTALL_PREFIX}/{bin,lib} respectively. CMAKE_INSTALL_PREFIX
defaults to `/usr/local` which we will want upon actual package
installation. During development, we will override this to be the path
to monad-linux in the superproject's Makefile.

Also move test output so monad-native Jenkins job can pick it up.
2015-10-30 18:49:18 -07:00
George Fleming c9cac40c5a Merge pull request 236 from dev/symlink-native into develop
Adding new isSymLink() function
2015-10-30 23:34:59 +00:00
George Fleming 2de4fe9be6 Adding new isSymLink() function 2015-10-30 11:47:44 -07:00
Andy Schwartzmeyer 4ca36b52ab Merge pull request 226 from dev/FQDN into develop
Merge dev/FQDN to develop
2015-10-29 16:47:37 +00:00
George Fleming 3a02f1b3a0 Change /bin/hostname to just hostname, and let sh figure out the path 2015-10-29 08:47:36 -07:00
George Fleming 2eaf911346 Add new getfullyqualifiedname test 2015-10-28 16:42:15 -07:00
George Fleming 2d442eb732 Skip getaddrinfo if hostname is already FQDN 2015-10-28 16:41:24 -07:00
Andy Schwartzmeyer 435111d4e5 Merge pull request 224 from dev/defaults into develop
Add sensible defaults for powershell and coreclr
2015-10-28 21:33:14 +00:00
George Fleming 29d496e3ac Adding additional comments 2015-10-28 10:24:43 -07:00
Andrew Schwartzmeyer 4d2b184892 Add sensible defaults for powershell and coreclr 2015-10-27 23:47:54 -07:00
George Fleming e776d01cc8 Change reference of GetComputerName 2015-10-27 16:43:43 -07:00
George Fleming 9ce93b0897 Merge branch 'develop' into dev/FQDN 2015-10-27 15:56:58 -07:00
George Fleming c21fad08a5 Merge pull request 221 from dev/GetComputerName-Native into develop 2015-10-27 22:42:36 +00:00
George Fleming 1759f9a2f6 Changes per Zack comments 2015-10-27 15:33:25 -07:00
George Fleming 11bcfb06d3 Add GetFullyQualifiedName() 2015-10-27 14:56:57 -07:00
George Fleming 7f6a494bf0 Modify return value 2015-10-27 14:21:25 -07:00
George Fleming 81f833cf25 Remove <iostream> 2015-10-27 10:57:02 -07:00
George Fleming b7260951f1 Remove debug output 2015-10-27 10:55:27 -07:00
George Fleming 9718cd02ab Remove W suffix of native function 2015-10-27 10:48:31 -07:00
George Fleming 845c4483b6 Simpliefied GetComputerName 2015-10-27 09:19:41 -07:00
Andrew Schwartzmeyer 5d61b3ff10 Merge branch 'dev/build-refactor' into develop
Note that a subtree split took place, removing the src directory.
2015-10-26 16:02:46 -07:00
Andrew Schwartzmeyer 18a047408d Compile pshost with -fPIC
So that libpshost can be linked with shared libraries (like the OMI
provider).
2015-10-26 12:08:16 -07:00
Andrew Schwartzmeyer 28dfd36a58 Require absolute path to assembly
Rather than assuming that it's in the current directory. Later this will
be refactoring to choose the appropriate host assembly (for an
interactive shell, script, command list, or self-test) from the
`PWRSH_ROOT` path.
2015-10-25 20:32:50 -07:00
Andrew Schwartzmeyer c6ca4db6a4 Output psnative and pshost to monad-linux/bin
But leave test artifacts in monad-native.
2015-10-25 17:59:14 -07:00
Andrew Schwartzmeyer 1c247171bd Update gitignore 2015-10-25 17:58:43 -07:00
Andrew Schwartzmeyer af813b9a08 Enable unit testing via CMake 2015-10-25 12:49:19 -07:00
Andrew Schwartzmeyer 523279f6e2 Resurrect .gitignore 2015-10-25 12:21:53 -07:00
Andrew Schwartzmeyer 569de14c1e Rename libps to libpsnative
And impl to native
2015-10-25 12:21:53 -07:00
Andrew Schwartzmeyer c1a5e9fb53 Resurrect .gitmodules after subtree split
Removed src intermediate directory
2015-10-25 12:15:21 -07:00
Andrew Schwartzmeyer 659ca235a7 Merge branch 'dev/HardLink-Native' into dev/username 2015-10-25 12:12:35 -07:00
Andrew Schwartzmeyer a548455918 Rename host_cmdline to powershell 2015-10-25 12:09:49 -07:00