-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8170f00
commit a41f3d5
Showing
13 changed files
with
225 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// ----------------------------------------------------------------------------- | ||
// PROJECT : PupNet | ||
// COPYRIGHT : Andy Thomas (C) 2022-23 | ||
// LICENSE : GPL-3.0-or-later | ||
// HOMEPAGE : https://github.com/kuiperzone/PupNet | ||
// | ||
// PupNet is free software: you can redistribute it and/or modify it under | ||
// the terms of the GNU Affero General Public License as published by the Free Software | ||
// Foundation, either version 3 of the License, or (at your option) any later version. | ||
// | ||
// PupNet is distributed in the hope that it will be useful, but WITHOUT | ||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License along | ||
// with PupNet. If not, see <https://www.gnu.org/licenses/>. | ||
// ----------------------------------------------------------------------------- | ||
|
||
using System.Runtime.InteropServices; | ||
using KuiperZone.PupNet.Builders; | ||
|
||
namespace KuiperZone.PupNet.Test; | ||
|
||
public class AppImageBuilderTest | ||
{ | ||
[Fact] | ||
public void GetRuntimePath_RuntimeExistsForKnownArch() | ||
{ | ||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | ||
{ | ||
// Ensure files are packaged | ||
Assert.True(File.Exists(AppImageBuilder.GetRuntimePath(Architecture.X64))); | ||
Assert.True(File.Exists(AppImageBuilder.GetRuntimePath(Architecture.Arm64))); | ||
Assert.True(File.Exists(AppImageBuilder.GetRuntimePath(Architecture.Arm))); | ||
} | ||
else | ||
{ | ||
// Linux files not packaged on Windows | ||
Assert.False(File.Exists(AppImageBuilder.GetRuntimePath(Architecture.X64))); | ||
} | ||
|
||
// There is no RID for linux-x86, so not possible to support for X86 | ||
Assert.Throws<ArgumentException>(() => AppImageBuilder.GetRuntimePath(Architecture.X86)); | ||
} | ||
|
||
} |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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