-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2083 from unoplatform/dev/dr/runtimeTestsUpdate
test: Update runtime-test engine
- Loading branch information
Showing
12 changed files
with
86 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
jobs: | ||
- job: Skia_Tests | ||
displayName: 'Runtime Tests - Skia GTK' | ||
timeoutInMinutes: 60 | ||
|
||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
|
||
variables: | ||
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Use .NET' | ||
inputs: | ||
packageType: 'sdk' | ||
version: '7.x' | ||
|
||
- script: | | ||
dotnet tool install -g uno.check | ||
uno-check --target skiagtk --fix --non-interactive --ci | ||
displayName: 'Run uno-check' | ||
- script: dotnet build Uno.Extensions.RuntimeTests.Skia.Gtk.csproj -c Debug -p:UnoTargetFrameworkOverride=net7.0 -p:GeneratePackageOnBuild=false -bl:$(Build.ArtifactStagingDirectory)/skia-gtk-runtime-test-build.binlog | ||
displayName: 'Build Runtime Tests app (GTK)' | ||
workingDirectory: $(Build.SourcesDirectory)/src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Gtk | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish Build Logs | ||
retryCountOnTaskFailure: 3 | ||
condition: always() | ||
inputs: | ||
PathtoPublish: $(build.artifactstagingdirectory)/skia-gtk-runtime-test-build.binlog | ||
ArtifactName: skia-runtime-test-build | ||
ArtifactType: Container | ||
|
||
- script: xvfb-run --auto-servernum --server-args='-screen 0 1280x1024x24' dotnet Uno.Extensions.RuntimeTests.Skia.Gtk.dll | ||
displayName: 'Run Runtime Tests (GTK)' | ||
workingDirectory: $(Build.SourcesDirectory)/src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Gtk/bin/Debug/net7.0 | ||
env: | ||
UNO_RUNTIME_TESTS_RUN_TESTS: '{}' | ||
UNO_RUNTIME_TESTS_OUTPUT_PATH: '$(Common.TestResultsDirectory)/skia-gtk-runtime-tests-results.xml' | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish GTK Runtime Tests Results' | ||
condition: always() | ||
retryCountOnTaskFailure: 3 | ||
inputs: | ||
testRunTitle: 'GTK Runtime Tests Run' | ||
testResultsFormat: 'NUnit' | ||
testResultsFiles: '$(Common.TestResultsDirectory)/skia-gtk-runtime-tests-results.xml' | ||
failTaskOnFailedTests: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Wpf/App.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
<Application x:Class="RuntimeTests.WPF.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:RuntimeTests.WPF" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
<Application | ||
x:Class="RuntimeTests.WPF.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:RuntimeTests.WPF"> | ||
<Application.Resources> | ||
</Application.Resources> | ||
</Application> |
15 changes: 6 additions & 9 deletions
15
src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Wpf/App.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using Uno.UI.Runtime.Skia.Wpf; | ||
|
||
namespace RuntimeTests.WPF | ||
namespace RuntimeTests.WPF; | ||
|
||
public partial class App : Application | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
public App() | ||
{ | ||
new WpfHost(Dispatcher, () => new Uno.Extensions.RuntimeTests.App()).Run(); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Wpf/MainWindow.xaml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/Uno.Extensions.RuntimeTests/Uno.Extensions.RuntimeTests.Skia.Wpf/MainWindow.xaml.cs
This file was deleted.
Oops, something went wrong.