Andrew Schwartzmeyer
b80da9ab4d
Use getlogin_r() in GetUserName and map errno
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
83d2162dc1
Use getlogin_r() in GetUserName and map errno
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
f676c77a8e
Check locale in GetUserName
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
197938c6a6
Check locale in GetUserName
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
4404e03613
Update GetUserName signature
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
61b4e5513a
Update GetUserName signature
2015-08-03 12:53:39 -07:00
Andrew Schwartzmeyer
c58871711c
Fix list items
2015-07-01 15:14:02 -07:00
Andrew Schwartzmeyer
2ab02cbdac
Add a readme
2015-07-01 15:06:29 -07:00
Andrew Schwartzmeyer
bf62c60637
Update src/monad submodule to monad-sync1
...
At branch dev/undo-resx-changes
2015-06-26 11:36:48 -07:00
Andrew Schwartzmeyer
99de20d640
Update generate makefiles
...
Pulled gen and *.mk from \\win2012-ps-01\builds\makegenout\081853542dc16e4d5a354dbf648b0f6a918f0cca
2015-06-26 11:03:54 -07:00
Andrew Schwartzmeyer
8f96a9e786
Indent and whitespace cleanup powershell-run.cs
2015-06-17 11:38:42 -07:00
Andy Schwartzmeyer
9351c05c82
Merge pull request 38 from dev/33-DriveAutoMount into develop
2015-06-16 21:24:50 +00:00
Andy Schwartzmeyer
dd4006b544
Merge pull request 39 from dev/xunit-runner into develop
2015-06-16 21:23:41 +00:00
Andrew Schwartzmeyer
7761dd70e4
Refactor tests.mk with $(addprefix)
...
For less repitition
2015-06-16 11:40:57 -07:00
Andrew Schwartzmeyer
89126dfdf2
Add xunit runner target
...
Does not yet work, see #50
2015-06-16 11:40:57 -07:00
Andrew Schwartzmeyer
195f42bea5
Add unit test for HasDriveAutoMounting()
...
Cannot unit test SessionStateInternal.Drives() (where this feature query
is used) without a testable mock of PowerShell.
2015-06-15 15:17:15 -07:00
Andrew Schwartzmeyer
c42ba3bd56
Add unit tests for UsesCodeSignedAssemblies()
...
Used in MshSnapinInfo.PSSnapInReader
2015-06-15 11:23:18 -07:00
Andrew Schwartzmeyer
de2ccdb749
Merge branch 'develop' into dev/59-run-test
...
Fix merge conflict
2015-06-12 10:04:28 -07:00
Andrew Schwartzmeyer
f04ceeef00
Rename run-test target to test
...
Since `make test` is usually expected for running unit tests
2015-06-12 09:52:38 -07:00
Andrew Schwartzmeyer
7088108923
Add dependency to run-test needed for teardown
2015-06-12 09:51:58 -07:00
Andrew Schwartzmeyer
cd0d85049c
Factor run-test dependencies out of Makefile
...
- tests.mk includes all test related code except run-test target
- run-test moved after run target
- TEST_SRCS uses wildcard to collect files
- dotnetlibs/xunit* uses wildcard to copy dependencies for monad-ext
- not %.dll because of the soon to be used xunit.console.netcore.exe
2015-06-12 08:40:40 -07:00
Andrew Schwartzmeyer
f7ffcd561a
Add unit tests for HasAmsi()
2015-06-11 15:52:42 -07:00
Andrew Schwartzmeyer
13cccf51cc
Add unit tests for HasCom() and IsComObject()
...
Added using declartion for clarity to test_CorePsPlatform and made test
function naming scheme consistent.
Update monad submodule with feature query.
2015-06-11 15:27:36 -07:00
Andrew Schwartzmeyer
99804642fc
Compile all unit tests into one shared dll
2015-06-11 14:17:12 -07:00
Andrew Schwartzmeyer
d9a0c8270f
Refactor unit tests
...
Splits unit tests into multiple files and a mock test runner (to be
replaced with the xUnit runner when it becomes available).
2015-06-11 13:47:35 -07:00
Andrew Schwartzmeyer
e4df047464
Use Xunit assertions
...
* Update monad-ext submodule with Xunit dlls
* Point Makefile xunit targets to monad-ext/xunit
* Add xunit.assert target to Makefile
* Add xunit.assert as dependency of ps_test.exe
* Add corerun as dependency of ps_test.exe
* Link ps_test.exe with xunit.assert
* Temporarily remove libps.so from ps_test.exe dependencies (WIP)
* Use Xunit in ps_test.cs
* Remove Assert mock
* Temporarily remove Platform.UserName (WIP)
With this patch, `make cleanall && make prepare && make run-test`
executes our (few) tests correctly using Xunit (without needing to `make
run` first).
2015-06-05 16:50:09 -07:00