Skip to content

Commit dbf910f

Browse files
committed
tests: check linux-x64-musl
1 parent 1af4a5e commit dbf910f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

integration-test/cli.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Set-StrictMode -Version Latest
33
$ErrorActionPreference = 'Stop'
44
. $PSScriptRoot/common.ps1
5+
$IsLinuxMusl = $IsLinux -and (ldd --version 2>&1) -match 'musl'
56

67
Describe 'Console apps (<framework>) - normal build' -ForEach @(
78
@{ framework = "net8.0" }
@@ -107,7 +108,7 @@ Describe 'Console apps (<framework>) - native AOT publish' -ForEach @(
107108

108109
Describe 'MAUI' -ForEach @(
109110
@{ framework = "net8.0" }
110-
) {
111+
) -Skip:$IsLinuxMusl {
111112
BeforeAll {
112113
RegisterLocalPackage 'Sentry.Android.AssemblyReader'
113114
RegisterLocalPackage 'Sentry.Bindings.Android'

integration-test/runtime.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ internal class FakeTransport : ITransport
5151
{
5252
return "./console-app/bin/Release/$framework/win-x64/publish/console-app.exe"
5353
}
54+
elseif ((ldd --version 2>&1) -match 'musl')
55+
{
56+
return "./console-app/bin/Release/$framework/linux-musl-x64/publish/console-app"
57+
}
5458
else
5559
{
5660
return "./console-app/bin/Release/$framework/linux-x64/publish/console-app"

0 commit comments

Comments
 (0)