Restore direct-installation Classic baseline for OpenBMH 1.0 (by Codex)
This commit is contained in:
1 parent
c8f04d0099
commit
c3704878d6
255 files changed
+311
-21131
No files matched your search
+2
-29
@@ -22,16 +22,12 @@ class PackageAllowlistTests(unittest.TestCase):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
# Empty authored placeholders test names/structure, not executable behavior.
|
||||
for name in ['OpenBMH', 'openbmh_cli', 'openbmh_import', 'README.md', 'LICENSE',
|
||||
for name in ['openbmh_play', 'openbmh_cli', 'README.md', 'LICENSE',
|
||||
'THIRD_PARTY_NOTICES.md', 'ACKNOWLEDGEMENTS.md', 'CONTRIBUTING.md']:
|
||||
(root / name).write_text('synthetic')
|
||||
notes = root / 'docs/release/0.2/RELEASE_NOTES.md'
|
||||
notes = root / 'docs/release/0.1/RELEASE_NOTES.md'
|
||||
notes.parent.mkdir(parents=True)
|
||||
notes.write_text('synthetic release notes')
|
||||
for name in ['launcher.rml', 'theme.rcss', 'stadium.tga', 'LatoLatin-Regular.ttf', 'LatoLatin-Bold.ttf']:
|
||||
asset = root / 'assets' / 'launcher' / name
|
||||
asset.parent.mkdir(parents=True, exist_ok=True)
|
||||
asset.write_text('synthetic packaged UI asset')
|
||||
licenses = Path(__file__).resolve().parents[1] / 'docs' / 'licenses'
|
||||
for source in licenses.iterdir():
|
||||
if source.is_file():
|
||||
@@ -39,20 +35,6 @@ class PackageAllowlistTests(unittest.TestCase):
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
target.write_text('synthetic license placeholder')
|
||||
package.validate(root, False)
|
||||
missing = root / 'assets/launcher/LatoLatin-Bold.ttf'
|
||||
missing.unlink()
|
||||
with self.assertRaises(RuntimeError):
|
||||
package.validate(root, False)
|
||||
missing.write_text('synthetic font')
|
||||
schema = root / 'docs/formats/obw/schema/1.0/manifest.json'
|
||||
schema.parent.mkdir(parents=True)
|
||||
schema.write_text('{"type":"object"}')
|
||||
package.validate(root, False)
|
||||
unexpected_json = root / 'docs/world.json'
|
||||
unexpected_json.write_text('{"synthetic":true}')
|
||||
with self.assertRaises(RuntimeError):
|
||||
package.validate(root, False)
|
||||
unexpected_json.unlink()
|
||||
for name in ['game.fbm', 'BMH.EXE', 'unit_tests', 'secret.txt']:
|
||||
(root / name).write_text('synthetic refusal fixture')
|
||||
with self.assertRaises(RuntimeError):
|
||||
@@ -64,15 +46,6 @@ class PackageAllowlistTests(unittest.TestCase):
|
||||
|
||||
|
||||
class SourceInventoryTests(unittest.TestCase):
|
||||
def test_only_pinned_unused_freetype_logging_submodule_is_omitted(self):
|
||||
record = b'160000 72dfcc858c040c54a6a0b88fcb7e70ee186d3167 0\tsubprojects/dlg\0'
|
||||
self.assertEqual(source_package.unbuilt_submodules('freetype', record),
|
||||
{'subprojects/dlg': '72dfcc858c040c54a6a0b88fcb7e70ee186d3167'})
|
||||
for component, entry in [('SDL2', record), ('freetype', record.replace(b'subprojects/dlg', b'other')),
|
||||
('freetype', record.replace(b'72df', b'0000'))]:
|
||||
with self.assertRaises(RuntimeError):
|
||||
source_package.unbuilt_submodules(component, entry)
|
||||
|
||||
def setUp(self):
|
||||
self.temporary = tempfile.TemporaryDirectory()
|
||||
self.addCleanup(self.temporary.cleanup)
|
||||
|
||||
Reference in new issue
Block a user