Commit graph

57 commits

Author SHA1 Message Date
Andrew Schwartzmeyer
73a1a51f69 Remove Platform.HasRegistry query 2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
c2cd059aa8 Remove Platform.HasDriveAutoMounting query 2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
c9a4197af1 Remove Platform.HasAmsi query 2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
46cfa26812 Remove Platform.HasCom query 2016-07-14 17:34:12 -07:00
Andrew Schwartzmeyer
2f303f3822 Use dotnet-test-xunit package from NuGet 2016-06-27 15:30:47 -07:00
Andrew Schwartzmeyer
97df59f553 Re-enable checking of assemblies with strong names
This removes the `UsesCodeSignedAssemblies()` switch in `CorePsPlatform`
and reverts the work-arounds skipping strong name checking.
2016-06-27 14:49:46 -07:00
Andrew Schwartzmeyer
b19be8c911 Fix CentOS RID in tests and build module 2016-06-16 18:39:29 -07:00
Andrew Schwartzmeyer
8e7c2ca30b Sign all assemblies with key 2016-06-16 15:48:18 -07:00
Sergei Vorobev
88ac6d0b2d Temporarely skip 1 failing test 2016-06-10 17:03:49 +00:00
Andrew Schwartzmeyer
9c7e97e325 Add Debian 8 RID 2016-06-03 09:37:59 -07:00
Andrew Schwartzmeyer
4f8e30c10e Update xUnit tests to depend on powershell project 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
dcaf231bde Update dotnet-test-xunit package 2016-05-20 16:06:31 -07:00
Andrew Schwartzmeyer
5349900c3b Use get-command instead of get-process in xUnit 2016-05-20 15:17:12 -07:00
Andrew Schwartzmeyer
7f9052c1c6 Remove platform tests
This is pointless to test as the .NET Code better be correct, or we have
worse problems.
2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
7c80035d35 Skip xUnit tests not yet ported to OS X 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
0012fa90d6 Remove deprecated Listener tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
4234b3db73 Remove CoreConsoleHost from xUnit tests 2016-05-17 13:28:44 -07:00
Andrew Schwartzmeyer
658f3e0d48 Update xUnit project to use ConsoleHost 2016-05-17 13:28:44 -07:00
George Fleming
1b97c954ea remove dependency on native GetHostname 2016-05-05 09:08:06 -07:00
Andrew Schwartzmeyer
2af90428ed Update dotnet-test-xunit package 2016-05-04 13:43:52 -07:00
Andrew Schwartzmeyer
ea5d5c3d05 Switch to netcoreapp1.0
Instead of using `dotnet publish`, we can use `dotnet build` and the new
`netcoreapp1.0` framework with a new dependency on
`Microsoft.NETCore.App` to generate output that does not include the
runtime, but can be run anywhere (given the installation of the
runtime).

While we cannot yet adopt a dependency on the shared host until .NET
Core RTM, we are forced to switch to this system anyway because the
latest RC3 packages and CLI do not support `netstandardapp1.5`. See
dotnet/cli#2482.

Thus we're in an in-between state where we have to use `netcoreapp1.0`,
but cannot use `"Microsoft.NETCore.App": { "type": "platform" }` to
utilize the shared host, as we need to continue to ship our host.
Without specifying "platform", we retain the status quo with respect to
build steps and outputs.

Additionally, there is no longer a good reason to use the RC3 packages,
and it has been advised we switch to RC2 since the
`Microsoft.NETCore.App` is only available for RC2. We must update
packages because our current version can no longer be debugged.
2016-04-25 14:01:44 -07:00
George Fleming
b8598b74ac Use new Listener signature 2016-04-19 15:14:22 -07:00
Andrew Schwartzmeyer
dc9b4c595d Fix xUnit tests for Linux
The latest xUnit packages fix the "could not resolve coreclr path"
problem we were having. To resolve all dependencies, the cli-deps feed
was replaced with the aspnet feeds.

However, the latest xUnit packages do not allow us to set the default
AssemblyLoadContext.
2016-04-14 18:06:57 -07:00
Andrew Schwartzmeyer
022a63c6d2 Fix whitespace in csharp/project.json 2016-04-08 21:58:05 -07:00
Andrew Schwartzmeyer
7ace2b6b64 Fix NuGet warnings by depending on NuGet.Packaging.Core
And upgrade dotnet-test-xunit
2016-04-08 21:50:24 -07:00
Andrew Schwartzmeyer
8c7174de10 Fix xUnit tests 2016-04-08 15:22:37 -07:00
Andrew Schwartzmeyer
bfaad3f057 Programmatic update of core console host rename 2016-04-08 10:59:41 -07:00
Andrew Schwartzmeyer
fe0ad12598 Update test documentation 2016-04-04 19:20:26 -07:00
Andrew Schwartzmeyer
067609cdce Add runtimes back to xUnit runner
Per dotnet/cli#2201
2016-04-01 20:25:12 -07:00
Andrew Schwartzmeyer
5a1666c984 Fix programatic references to Linux.Host 2016-04-01 19:15:41 -07:00
Andrew Schwartzmeyer
d7b104110e Bump .NET Core packages to 23931-00 2016-03-31 12:33:44 -07:00
Andrew Schwartzmeyer
609a4c31e9 Fix up Pester test documentation 2016-03-30 23:30:25 -07:00
Sergei Vorobev
244dea20a9 Fix version of dotnet-test-xunit to a previous good known one 2016-03-30 20:46:46 -07:00
JumpingYang001
b4ec4bf0d8 Fix travis fail with different Mode format in special machine for FileSytemProvider xunit test 2016-03-24 02:02:50 -07:00
JumpingYang001
81a31ab07e Fix travis fail for FileSytemProvider xunit test 2016-03-24 01:38:35 -07:00
JumpingYang001
7c5a13ec74 Update FileSystemProviderTest to let all test method works for #120 2016-03-24 01:11:11 -07:00
JumpingYang001
31ec32896f Update Fact Skip for not work tests for FileSystemProvider xunit test 2016-03-22 20:23:37 -07:00
JumpingYang001
5c35053350 Update test fix for test_FileSystemProvider.cs 2016-03-22 20:23:37 -07:00
JumpingYang001
920bc1f3f8 Add FileSystemProvider xUnit test for issue 120 2016-03-22 20:23:37 -07:00
JumpingYang001
c460e52043 Update test fix for test_SessionState.cs 2016-03-17 20:18:29 -07:00
Andrew Schwartzmeyer
1665d6c525 Add SessionStateTests to AssemblyLoadContext collection 2016-03-17 19:11:41 -07:00
JumpingYang001
c42258cfac Add SessionStateInternal.Drives() xUnit test
Resolves #64
2016-03-17 19:10:23 -07:00
Andrew Schwartzmeyer
60ef5cd58d Add xUnit tests readme 2016-03-17 18:20:05 -07:00
Andrew Schwartzmeyer
6d93a1766b Add all classes to AssemblyLoadContext collection
To ensure that the initializer is called before any other code. This is
as close to a global init hook as I can find.
2016-03-17 18:15:39 -07:00
Andrew Schwartzmeyer
b820817c84 Fix AssemblyLoadContext fixture
Resolves #676.
2016-03-17 17:36:06 -07:00
Andrew Schwartzmeyer
447b3ef729 Update xUnit runner to netstandardapp1.5
This was enabled in dotnet/coreclr.xunit#12
2016-03-14 16:51:49 -07:00
Andrew Schwartzmeyer
da9c58828e Workaround dotnet/corefx#6603 2016-03-03 17:02:07 -08:00
Andrew Schwartzmeyer
9f2ce63267 Fix xUnit tests for netstandardapp1.5
With the switch to `netstandardapp1.5` framework for the host, the xUnit
test runner broke. For `dotnet test` to work with the .NET Core xUnit
runner, it must continue to target `dnxcore50`. Fortunately, we can
import our project's framework, and make everything work again.

Also improved the `xunit.sh` script to check for dependencies.
2016-02-19 14:40:17 -08:00
Andrew Schwartzmeyer
e6e4dcafbe Build with new framework and new CLI
All libraries now use the framework `netstandard1.5`, and import the
`dnxcore50` and `portable` frameworks. The app that is published,
Microsoft.PowerShell.Linux.Host, that is, the top-level dependency that
emits an executable, instead targets `netstandardapp1.5` and has a new
`runtimes` key so that .NET CLI's `restore` and `publish` commands know
which runtime implementations to resolve.

When switching to the new CLI, we needed to fix how we specified our
dependencies. In particular, the .NET CLI team helped me figure out how
to download packages that are reference assembly only on Linux, with
implementations on Windows. The result of this is the new `frameworks`
setup.

Additionally, we were incorrectly specifying our build dependencies;
that is, projects we also build (not packages). The solution was much
cleaner. We removed the `type: build` section and replaced it with the
version `1.0.0-*` that all our projects currently use.

The `project.json` files also had their names, descriptions,
indentation, and versions fixed.

The build scripts were simplified.
2016-02-18 10:06:56 -08:00
Andrew Schwartzmeyer
dae6e0ebd5 Use Linux.Host in xUnit tests
Make its internals visible to the `powershell-tests` assembly, and use its
`MyHost` and `Listener` classes instead of facades.
2016-02-17 17:03:59 -08:00