Граф коммитов

35 Коммитов

Автор SHA1 Сообщение Дата
Ivan Povazan ab056567a1
Bumping version number to 10.0.0 (#1257) 2024-09-04 16:53:21 +02:00
Alexander Köplinger 546da53c91 Fix version in tools/install-xharness.sh 2023-12-15 16:11:28 +01:00
Přemek Vysoký aa434d0c7e
Change XHarness versioning to match branches (#1021)
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2023-05-03 04:14:44 -07:00
Pavel Savara c3927924fb
Bump to Net8 (#986)
* to make it work with net8 pugins in the runtime repo

* feedback
2023-01-18 11:27:30 -05:00
Přemek Vysoký 844b7bc927
Use latest .NET 7.0 in bootstrap scripts always (#928) 2022-07-25 17:22:13 +02:00
Djuradj Kurepa 504d268a77
Bump .NET version in bootstrap scripts (#926)
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
2022-07-25 16:00:41 +02:00
Přemek Vysoký ac63991509
Fix typo in PowerShell bootstrap script (#867) 2022-04-26 15:31:20 +02:00
Přemek Vysoký a1f40be496
Use .NET 7 preview 2 in bootstrap scripts (#860) 2022-04-11 16:17:41 +00:00
Přemek Vysoký 05056c8205
Add `DOTNET_ROOT` instructions to `Install-XHarness.ps1` (#808)
Co-authored-by: Łukasz Patalas <dev@lukaszpatalas.pl>
2022-01-31 17:52:49 +01:00
Přemek Vysoký 7aeebc6bce
Add script for running E2E tests on Windows (#778) 2021-11-26 13:03:07 +01:00
Přemek Vysoký 42ee9ef504
Add PowerShell version of the install script (#766)
Co-authored-by: Łukasz Patalas <dev@lukaszpatalas.pl>
2021-11-16 21:32:22 +01:00
dotnet-maestro[bot] 51a9b22f7c
[main] Update dependencies from dotnet/arcade (#703)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
2021-09-01 18:58:48 +02:00
dotnet-maestro[bot] d78f6e0d1e
[main] Update dependencies from dotnet/arcade (#688)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
2021-08-26 10:28:58 +02:00
Přemek Vysoký 89e0eae6f9
Fix E2E test script (#693) 2021-08-23 14:55:51 +02:00
dotnet-maestro[bot] ccb49ae05b
[main] Update dependencies from dotnet/arcade (#682)
[main] Update dependencies from dotnet/arcade


 - Bump .NET SDK in the bootstrap script
2021-07-23 15:36:08 +00:00
dotnet-maestro[bot] d6f8a4ad30
[main] Update dependencies from dotnet/arcade and bump to .NET 6.0 preview 4 (#637)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
2021-06-14 10:53:54 +02:00
Přemek Vysoký 27b3bc3ec1
Revert "[main] Update dependencies from dotnet/arcade and bump to .NET 6.0 preview 4 (#628)" (#633)
This reverts commit f1f73043ea.
2021-06-10 15:05:00 +00:00
dotnet-maestro[bot] f1f73043ea
[main] Update dependencies from dotnet/arcade and bump to .NET 6.0 preview 4 (#628)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
2021-06-08 11:24:36 +02:00
Přemek Vysoký e60d63ce90
Add script for running E2E tests (#585)
This script is a quick way to run the XHarness E2E tests. These test are located in tests/integration-tests and require the Arcade and Helix SDK. To run them, you need to invoke these through MSBuild which makes the process a bit cumbersome. This script should make things easier.
2021-05-03 19:18:58 +02:00
dotnet-maestro[bot] db925253d3
[main] Update dependencies from dotnet/arcade (#586)
[main] Update dependencies from dotnet/arcade


 - Bump .NET version in the bootstrap script
2021-05-03 12:53:47 +00:00
Přemek Vysoký c2c34bf7fd
Remove the .NET 3.1 target (#527)
* Target .NET 6.0 only
* Adjust README
* Update dependencies from https://github.com/dotnet/arcade build 20210326.2
* Bump the .NET version in the bootstrap script
* Remove CLI version override
* Fix conditional blocks
2021-04-01 15:22:55 +02:00
Přemek Vysoký 5525052168
Merge SimulatorInstaller commands to main CLI (#497)
This removes the SimulatorInstaller project and moves the file to CLI so that you can do:
```
xharness apple simulators list
```

When installing the simulators, it doesn't accept the same format e.g. `ios-simulator-64` of targets as the CLI, this will be a follow-up.

#478
2021-03-08 16:50:50 +01:00
Přemek Vysoký 6144d1c23f
Fix bootstrap script instructions (#399) 2020-12-15 16:59:21 +01:00
Přemek Vysoký ea857eecd5
Add the XHarness bootstrap script (#396)
Adds a simple script that installs XHarness locally in a folder so that you can try XHarness out easily.
2020-12-11 10:52:14 +01:00
Přemek Vysoký 1f8a96907a
Keep new lines in multi-line log messages (#325)
Fixes #322 

The new log lines will look like this:
![image](https://user-images.githubusercontent.com/7013027/94940988-912aa100-04d4-11eb-8f70-f182c7b40a5e.png)
2020-10-02 20:07:07 +02:00
Přemek Vysoký 8f16392d1e
Use multi-line logging for SimulatorInstaller (#319) 2020-09-30 15:46:01 +02:00
Alexander Köplinger f4af4bc86a
Improve wasm test logging (#315)
Don't show PASS/SKIP messages by default in the console log, unless verbose logging is enabled in xharness.
We capture all output and store it in the wasm-console.log file in the xharness output directory instead.

Update to new Microsoft.Extensions.Logging version and enable single-line logging
2020-09-29 03:32:10 +02:00
Přemek Vysoký 9a3b135b31
Add Windows/Linux ProcessManagers and improve ProcessManager logging (#274)
This change introduces platform dependent `ProcessManager` implementations to avoid problems like in #273 (WASM can be run anywhere).

Some notes:
- `MacOSProcessManager` was moved and with it logging had to move as well.
- I couldn't utilize the `Process.Kill(entireProcessTree: true)` because Xamarin is dependent on `netstandard2.1` version of the library (they are on .NET Framework) and this overload doesn't exist, only the one without the param. So tree killing using the `kill` command as it was implemented for Xamarin has to stay as is.
- Logging was improved for cases when processes time out
- I tested on OSX, Windows and Linux that a process can be killed properly

Fixes: #273
2020-06-24 14:17:22 +02:00
Přemek Vysoký e26ccfae0b
Resolve all code style warnings in the repo (#267)
No functional changes, just Visual Studio quick fixes of all the issues we have (200+)

Also fixes invalid severity level in .editorconfig: e45d130e9e
2020-06-18 12:06:29 +02:00
Alexander Köplinger 0e380acbfc
Use RollForward msbuild property instead of rollForwardOnNoCandidateFx in json (#248)
This is a better way than https://github.com/dotnet/xharness/pull/30 since .NET Core 3.1 added an official msbuild property for setting that value.
2020-06-04 20:40:54 +02:00
Přemek Vysoký fb3f0a34bf
Add the -- pass through arguments and unit tests (#241)
A requirement for the WASM command where we need to pass arbitrary arguments to the engine/runner inside and also need to parse some the regular way.

Example:
```
xharness wasm test --enable-gc --assembly=WasmTestRunner.dll --assembly=System.Buffers.Tests.dll -- v8 --expose_wasm runtime.js
```

This will take everything after `--` and store it into `PassThroughArguments` property:
- `v8`
- `--expose_wasm`
- `runtime.js`

And then the rest will be parsed via Options in the Arguments class supplied for this:
```csharp
protected override OptionSet GetTestCommandOptions() => new OptionSet
{
    { "assembly=", v => Assemblies.Add(v) },
    { "enable-gc", _ => EnableGc = true },
};
```

Also contains unit tests for `XHarnessCommand` and `XHarnessCommandArguments`.
2020-05-29 16:03:43 +02:00
Přemek Vysoký f996a08756
Add integration tests for SimulatorInstaller (#209)
Adds a new pipeline stage to our PR builds that will run the packaged SimulatorInstaller tool and verify the list and the find command
2020-05-18 18:21:24 +02:00
Přemek Vysoký 7c4562725b
Rewrite the SimulatorInstaller tool (#182)
The tool is quite simple, yet the code was pretty much spaghetti somehow. I have rewritten it to follow the same Command/Argument structure as the CLI project and also changed the CLI to be the same as rest of dotnet so that now we have these commands:
- `install` - Installs given simulators
- `list` - Lists available simulators
- `find` - Finds whether given simulators are installed and outputs list of missing ones (returns 0 when none missing)
- `help`

I added the `help`:
```
> dotnet simulator-installer help install
usage: install [OPTIONS]

Installs given simulators

  -s, --simulator=VALUE      ID of the Simulator to install. Repeat multiple
                               times to define more
      --force                Install again even if already installed
      --xcode=VALUE          Path to where Xcode is located, e.g. /Application/
                               Xcode114.app. If not set, xcode-select is used
                               to determine the location
      --verbosity, -v[=VALUE]
                             Verbosity level - defaults to 'Information' if not
                               specified. If passed without value, 'Debug' is
                               assumed (highest)
      --help, -h
```

- Fixed the `--only-check`/`find` mode which got broken because of the Loggers
- Stopped requiring the `--xcode` parameter since we can use `xcode-select` from `ProcessManager`
- Enabled nullability for `ProcessManager`
2020-05-15 11:54:12 +02:00
Manuel de la Pena a0d7b1f7c6
[iOS/Android] Move shared code. (#191)
Create a common library with useful classes to be shared between the
projects. At the moment with just move:

* Base implementation of the ProcessManager and IProccessManager
* ILog interface.
* StringUtilities used by the process manager.

Created the ProcessManager implementation for Mac OS X and a child class
that contains the specific mlaunch class since is very specific for the
iOS xharness case.


Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
2020-05-14 17:26:15 -04:00
Přemek Vysoký 856f3b8cd8
Add the Microsoft.DotNet.XHarness.SimulatorInstaller project (#173)
This command line tool allows management of Xcode iOS/WatchOS/tvOS Simulators on MacOS.
It is used for automated update of OSX servers.
Originally taken from: https://github.com/xamarin/xamarin-macios/blob/master/tools/siminstaller/Program.cs

It is packaged as a dotnet tool
2020-05-13 12:10:22 +02:00