Rename release outputs and managed project to OME
Some checks failed
Some checks failed
This commit is contained in:
@@ -12,11 +12,11 @@ class DotnetPublishProxyTests(unittest.TestCase):
|
||||
def test_stages_exact_expected_publish(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as temporary:
|
||||
root = Path(temporary)
|
||||
project = root / "Himegari.csproj"
|
||||
project = root / "OME.csproj"
|
||||
project.write_text("<Project />", encoding="utf-8")
|
||||
source = root / "prepublished"
|
||||
source.mkdir()
|
||||
(source / "Himegari.dll").write_bytes(b"managed")
|
||||
(source / "OME.dll").write_bytes(b"managed")
|
||||
(source / "libhostfxr.so").write_bytes(b"runtime")
|
||||
output_root = root / "godot-publish-dotnet"
|
||||
output = output_root / "123-ExportRelease-linux-x64"
|
||||
@@ -29,26 +29,26 @@ class DotnetPublishProxyTests(unittest.TestCase):
|
||||
"AGE_PUBLISH_PROJECT": str(project),
|
||||
"AGE_PREPUBLISHED_OUTPUT": str(source),
|
||||
"AGE_PUBLISH_OUTPUT_ROOT": str(output_root),
|
||||
"AGE_PUBLISH_ASSEMBLY": "Himegari.dll",
|
||||
"AGE_PUBLISH_ASSEMBLY": "OME.dll",
|
||||
"AGE_PUBLISH_RUNTIME": "linux-x64",
|
||||
})
|
||||
self.assertEqual(output.resolve(), staged)
|
||||
self.assertEqual(b"managed", (staged / "Himegari.dll").read_bytes())
|
||||
self.assertEqual(b"managed", (staged / "OME.dll").read_bytes())
|
||||
self.assertEqual(b"runtime", (staged / "libhostfxr.so").read_bytes())
|
||||
|
||||
def test_rejects_drift_and_output_escape(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as temporary:
|
||||
root = Path(temporary)
|
||||
project = root / "Himegari.csproj"
|
||||
project = root / "OME.csproj"
|
||||
project.write_text("<Project />", encoding="utf-8")
|
||||
source = root / "prepublished"
|
||||
source.mkdir()
|
||||
(source / "Himegari.dll").write_bytes(b"managed")
|
||||
(source / "OME.dll").write_bytes(b"managed")
|
||||
environment = {
|
||||
"AGE_PUBLISH_PROJECT": str(project),
|
||||
"AGE_PREPUBLISHED_OUTPUT": str(source),
|
||||
"AGE_PUBLISH_OUTPUT_ROOT": str(root / "reserved"),
|
||||
"AGE_PUBLISH_ASSEMBLY": "Himegari.dll",
|
||||
"AGE_PUBLISH_ASSEMBLY": "OME.dll",
|
||||
"AGE_PUBLISH_RUNTIME": "linux-x64",
|
||||
}
|
||||
wrong_runtime = dotnet_publish_proxy.PublishRequest(
|
||||
@@ -65,11 +65,11 @@ class DotnetPublishProxyTests(unittest.TestCase):
|
||||
def test_stages_windows_publish_when_explicitly_selected(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as temporary:
|
||||
root = Path(temporary)
|
||||
project = root / "Himegari.csproj"
|
||||
project = root / "OME.csproj"
|
||||
project.write_text("<Project />", encoding="utf-8")
|
||||
source = root / "prepublished"
|
||||
source.mkdir()
|
||||
(source / "Himegari.dll").write_bytes(b"managed")
|
||||
(source / "OME.dll").write_bytes(b"managed")
|
||||
output = root / "reserved/123-ExportRelease-win-x64"
|
||||
request = dotnet_publish_proxy.PublishRequest(
|
||||
project, "ExportRelease", "win-x64", "true", output
|
||||
@@ -78,7 +78,7 @@ class DotnetPublishProxyTests(unittest.TestCase):
|
||||
"AGE_PUBLISH_PROJECT": str(project),
|
||||
"AGE_PREPUBLISHED_OUTPUT": str(source),
|
||||
"AGE_PUBLISH_OUTPUT_ROOT": str(root / "reserved"),
|
||||
"AGE_PUBLISH_ASSEMBLY": "Himegari.dll",
|
||||
"AGE_PUBLISH_ASSEMBLY": "OME.dll",
|
||||
"AGE_PUBLISH_RUNTIME": "win-x64",
|
||||
})
|
||||
self.assertEqual(output.resolve(), staged)
|
||||
|
||||
Reference in New Issue
Block a user