Sync VCC Plus 3.7.1 build 67 source
Refresh reviewed MCP output export, four-drive owned playtests, bounded BASIC readiness, and pinned CMOC 0.1.101 source/patches. Preserve independent source-edition identity, empty libraries, notices and privacy boundaries. Validated 74 export/privacy checks, pinned dependency sources, and an independent unsigned universal Release build. A subsequent documentation-only correction removes an excluded qualification link; all build inputs remain identical.
This commit is contained in:
1 parent
4abc194001
commit
5534005799
54 files changed
+2950
-435
No files matched your search
@@ -36,29 +36,50 @@ def check_assembly(runtime, folder):
|
||||
raise SystemExit('Unexpected LWASM result for escaping ' + directive + ': ' + failure.stderr)
|
||||
|
||||
def check_disk_allocation(runtime, folder):
|
||||
"""The explicit before-dir option must match the existing forward allocator."""
|
||||
"""Check complete FAT order, including spillover and option precedence."""
|
||||
folder.mkdir()
|
||||
tool = str(runtime / 'bin/writecocofile')
|
||||
payload = folder / 'DATA.DAT'
|
||||
payload.write_bytes(bytes(range(256)) * (35 * 9)) # 35 granules: spills above track 17.
|
||||
images = []
|
||||
for name, options, first in [('default', [], 0), ('before', ['--allocate-before-dir'], 0),
|
||||
('after', ['--allocate-after-dir'], 34),
|
||||
('last-option', ['--allocate-after-dir', '--allocate-before-dir'], 0)]:
|
||||
image = folder / (name + '.dsk')
|
||||
image.write_bytes(b'\xff' * (35 * 18 * 256))
|
||||
subprocess.run([tool, *options, str(image), str(payload)], check=True, stdout=subprocess.DEVNULL)
|
||||
content = image.read_bytes()
|
||||
entry = 17 * 18 * 256 + 2 * 256
|
||||
if content[entry + 13] != first:
|
||||
raise SystemExit('Incorrect disk allocation start: ' + name)
|
||||
restored = subprocess.check_output([tool, '--stdout', str(image), 'DATA.DAT'])
|
||||
if restored != payload.read_bytes():
|
||||
raise SystemExit('Disk allocation readback mismatch: ' + name)
|
||||
images.append(content)
|
||||
if images[0] != images[1] or images[0] != images[3]:
|
||||
raise SystemExit('Before-directory option changed default allocation semantics')
|
||||
|
||||
forward = list(range(68))
|
||||
before = list(range(33,-1,-1)) + list(range(34,68))
|
||||
after = list(range(34,68)) + list(range(33,-1,-1))
|
||||
end = list(range(67,-1,-1))
|
||||
def chain(content, entry=0):
|
||||
fat = content[17*18*256+256:17*18*256+256+68]
|
||||
current = content[17*18*256+2*256+13+32*entry]
|
||||
result = []
|
||||
while current < 68:
|
||||
if current in result: raise SystemExit('Allocation cycle')
|
||||
result.append(current)
|
||||
current = fat[current]
|
||||
if not 0xc0 <= current <= 0xc9: raise SystemExit('Invalid allocation end')
|
||||
return result
|
||||
def image(name, options, size):
|
||||
payload.write_bytes(bytes(range(256)) * (size*9))
|
||||
path = folder/(name+'.dsk')
|
||||
path.write_bytes(b'\xff'*(35*18*256))
|
||||
subprocess.run([tool,*options,str(path),str(payload)],check=True,stdout=subprocess.DEVNULL)
|
||||
if subprocess.check_output([tool,'--stdout',str(path),'DATA.DAT']) != payload.read_bytes():
|
||||
raise SystemExit('Readback mismatch')
|
||||
return path
|
||||
for name, options, order in [('default',[],forward),('forward',['--allocate-forward'],forward),
|
||||
('before',['--allocate-before-dir'],before),('after',['--allocate-after-dir'],after),
|
||||
('end',['--allocate-from-end'],end),('last',['--allocate-after-dir','--allocate-before-dir'],before),
|
||||
('last-forward',['--allocate-before-dir','--allocate-forward'],forward)]:
|
||||
for size in [1,35,68]:
|
||||
path=image(name,options,size)
|
||||
if chain(path.read_bytes()) != order[:size]: raise SystemExit('Order mismatch')
|
||||
full=image('full',[],68)
|
||||
extra=folder/'EXTRA.DAT'
|
||||
extra.write_bytes(b'x')
|
||||
original=full.read_bytes()
|
||||
fail=subprocess.run([tool,str(full),str(extra)],capture_output=True)
|
||||
if fail.returncode==0 or full.read_bytes()!=original: raise SystemExit('Full disk changed')
|
||||
for name,options,order in [('forward',['--allocate-forward'],forward),('before',['--allocate-before-dir'],before)]:
|
||||
path=image('occupied',options,1)
|
||||
subprocess.run([tool,*options,str(path),str(extra)],check=True,stdout=subprocess.DEVNULL)
|
||||
if chain(path.read_bytes())!=order[:1] or chain(path.read_bytes(),1)!=order[1:2]:
|
||||
raise SystemExit('Occupied granule changed')
|
||||
def check_guest_example(runtime, env, folder, project_name, payloads):
|
||||
"""Build an editable example and compare its guest disk files with the build outputs."""
|
||||
source = Path(__file__).resolve().parents[2] / "examples/cmoc" / project_name
|
||||
|
||||
Reference in new issue
Block a user