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
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
Andrew Schwartzmeyer
807760f06d
Remove deprecated GetCPInfo code
2015-10-25 12:06:47 -07:00
Andrew Schwartzmeyer
81984534b8
Refactor CMake build system and host files
...
Use CMakeLists.txt file for each directory. Setup to be consumed by
monad-linux's CMake. Utilize GoogleTest's CMake. Refactor host files
layout.
2015-10-25 12:03:49 -07:00
Andrew Schwartzmeyer
5ed81a0a41
Return char* for GetUserName
...
The UTF-8 char* is marshaled to a UTF-16 string automatically. It must
be allocated on the heap as the CLR will free the returned memory.
This removes entire classes of possible errors, greatly reducing the
code complexity and number of tests.
2015-10-24 22:17:44 -07:00
Andrew Schwartzmeyer
b91c117313
GetLinkCount is not Unicode
2015-10-24 21:30:42 -07:00
Andrew Schwartzmeyer
a3a3e2b5c9
Conditionalize extern "C"
2015-10-23 15:59:06 -07:00
Andrew Schwartzmeyer
6af36478fd
Conditionalize extern "C"
2015-10-23 15:59:06 -07:00
George Fleming
cf9b390faa
Adding native tests
2015-10-23 15:48:48 -07:00
Andy Schwartzmeyer
b6aed2a6a4
Merge pull request 201 from dev/libhost into master
2015-10-23 19:17:32 +00:00
George Fleming
43c7bdd137
New GetLinkCount()
2015-10-23 10:55:55 -07:00
Andrew Schwartzmeyer
460f51fa7f
Update libpshost comments
2015-10-23 01:04:45 -07:00
Andrew Schwartzmeyer
4767d46b38
Update libpshost comments
2015-10-23 01:04:45 -07:00