This commit is contained in:
2026-11-24 15:51:02 +01:00
parent cca4d73e41
commit f4aa17114a
22092 changed files with 5042406 additions and 0 deletions
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0e4d0095af4abb243b05d48de67d9c0b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,63 @@
using System;
using NUnit.Framework;
using UnityEditor.Il2Cpp;
/// <summary>
/// EditMode tests for the Linux x86_64 toolchain package.
/// </summary>
/// <remarks>
/// Verifies construction, a non-null payload path, that compiler flags are not
/// provided by this toolchain-only package, and that linker flags include both
/// <c>-fuse-ld=…</c> and <c>-static-libstdc++</c>.
/// </remarks>
/// <seealso cref="ToolchainLinuxX86_64"/>
class LinuxToolchainTest
{
/// <summary>
/// Ensures the toolchain package can be instantiated without throwing.
/// </summary>
[Test]
public void TestPackageInitialization()
{
Assert.NotNull(new ToolchainLinuxX86_64());
}
/// <summary>
/// Confirms the package reports a payload path string.
/// </summary>
/// <remarks>
/// This test only checks for a non-null string; it does not assert the path exists on disk.
/// </remarks>
[Test]
public void TestPayloadExtracted()
{
var toolchainPackage = new ToolchainLinuxX86_64();
Assert.NotNull(toolchainPackage.PathToPayload());
}
/// <summary>
/// Verifies that no compiler flags are emitted by the toolchain package.
/// </summary>
[Test]
public void TestIL2CPPCompilerFlags()
{
var toolchainPackage = new ToolchainLinuxX86_64();
Assert.Null(toolchainPackage.GetIl2CppCompilerFlags());
}
/// <summary>
/// Checks that the linker flags include both the linker selection and static libstdc++.
/// </summary>
[Test]
public void TestIL2CPPLinkerFlags()
{
var toolchainPackage = new ToolchainLinuxX86_64();
string linkerflags = toolchainPackage.GetIl2CppLinkerFlags();
bool containsFuseLd = linkerflags.Contains("-fuse-ld=", StringComparison.Ordinal);
bool containsStaticCpp = linkerflags.Contains("-static-libstdc++", StringComparison.Ordinal);
Assert.IsTrue(containsFuseLd && containsStaticCpp,
"Linker flags should include both -fuse-ld=… and -static-libstdc++.");
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0a7dbb1b60d3371429cc203a9355aa49
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,19 @@
{
"name": "Unity.Toolchain.Linux-x86_64-Linux.EditorTests",
"references": [
"Unity.Toolchain.Editor",
"Unity.Sysroot",
"Unity.Toolchain.Linux-x86_64-Linux",
"Unity.SysrootPackage.Editor"
],
"optionalUnityReferences": [
"TestAssemblies"
],
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": []
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 73069f0c48fa8a04c978a2f4d73f917d
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: