From 22e93a7ee61ee320e207c0f77a1515df9b0f4c6d Mon Sep 17 00:00:00 2001 From: Giorgi Dalakishvili Date: Wed, 6 Dec 2023 00:56:00 +0400 Subject: [PATCH] Proguard upload test (#2947) * Generate and upload mapping file for test app * Verify that test server recieves proguard mapping file --- integration-test/cli.Tests.ps1 | 1 + integration-test/common.ps1 | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/integration-test/cli.Tests.ps1 b/integration-test/cli.Tests.ps1 index 8645b0afed..266fbf0eef 100644 --- a/integration-test/cli.Tests.ps1 +++ b/integration-test/cli.Tests.ps1 @@ -156,6 +156,7 @@ Describe 'MAUI' -ForEach @( 'maui-app.pdb' ) $result.ScriptOutput | Should -AnyElementMatch 'Found 1 debug information file \(1 with embedded sources\)' + $result.ScriptOutput | Should -AnyElementMatch 'Uploaded a total of 1 new mapping files' } It "uploads symbols and sources for an iOS build" -Skip:(!$IsMacOS) { diff --git a/integration-test/common.ps1 b/integration-test/common.ps1 index ce25c66b45..2aec9f6771 100644 --- a/integration-test/common.ps1 +++ b/integration-test/common.ps1 @@ -181,6 +181,19 @@ BeforeAll { throw "Failed to create the test app '$name' from template '$type'." } + if ($type -eq 'maui') + { + @" + + + true + r8 + d8 + + +"@ | Out-File $name/Directory.Build.props + } + if ($type -eq 'console') { AddPackageReference $name 'Sentry'