367 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
20 lines
1.1 KiB
Python
Executable File
20 lines
1.1 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""Independent synthetic-server PE/WinSock fixture launcher, not a game client."""
|
|
import json,os,subprocess,sys
|
|
from pathlib import Path
|
|
from wine_console import run_console
|
|
ROOT=Path(__file__).resolve().parents[1]
|
|
FOLDER=ROOT/'build/wine-wire'
|
|
def main():
|
|
if len(sys.argv)!=8:raise RuntimeError('Synthetic fixture requires seven bounded test arguments')
|
|
exe=FOLDER/'network.exe'
|
|
if not exe.is_file():raise RuntimeError('Build the owned Windows network fixture first')
|
|
env=dict(os.environ,WINEPREFIX=str(ROOT/'runtime/native-wine-prefix'),WINEDEBUG='-all')
|
|
for key in ('LD_PRELOAD','GW_NATIVE_BOOTSTRAP','GW_NATIVE_EXPECTED_EXE','GW_NATIVE_REGISTER'):env.pop(key,None)
|
|
# Inputs here are exclusively created by tests/loopback_fixture.py; no stored
|
|
# local-account lookup, GUI input or credential material is logged.
|
|
result=run_console(['wine',str(exe),*sys.argv[1:]],env=env,timeout=12)
|
|
sys.stdout.buffer.write(result.stdout);sys.stderr.buffer.write(result.stderr)
|
|
return result.returncode
|
|
if __name__=='__main__':sys.exit(main())
|