use env var `TEST_SUITE_MSBUILD_HOST_TYPES` to choose msbuild host to test

This commit is contained in:
Enrico Sada 2017-04-25 18:41:53 +02:00
Родитель c92eda1450
Коммит 3fcf0055f6
2 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -54,3 +54,14 @@ To specify what package version to test, use env var:
- `TEST_SUITE_FSHARP_CORE_PKG_VERSION` => `FSharp.Core` pkg version
If not set, default versions are specified in [test/testAssets/TestSuiteProps/TestSuiteProps.props](test/testAssets/TestSuiteProps/TestSuiteProps.props)
## Choose MSBuild host types
Use env var `TEST_SUITE_MSBUILD_HOST_TYPES` to run other test for different msbuild host types
Msbuild Core test always run
- `MSBUILD` to run also MSBuild (.NET Full), require `msbuild.exe` in `PATH`
- `MONO` to run also Mono, require `mono` in `PATH`
to specify multiple, use `;` separator, so `MSBUILD;MONO` for example

Просмотреть файл

@ -66,7 +66,7 @@ namespace NetcoreCliFsc.Tests
get
{
var msbuildHost =
(GetEnvironmentVariable("TEST_SUITE_MSBUILD_HOST_ONLY") ?? "")
(GetEnvironmentVariable("TEST_SUITE_MSBUILD_HOST_TYPES") ?? "")
.ToUpper()
.Split(';');