Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
This commit is contained in:
@@ -111,12 +111,14 @@ for signature,base,hook in [('protected override void Observe(', 'super.Observe(
|
||||
method=body(P,signature);assert method.index(base)<method.index(hook)
|
||||
assert 'entry.Report = unit.PendingReport.Snapshot()' in s
|
||||
for forbidden in ('ApplyCombatOrder(', 'PendingReport = new', 'new ERR_HQRoute', 'SetAmmoCount(', 'TrySpawnPrefabToStorage(', 'SetOrigin('):assert forbidden not in s
|
||||
convoy=(ROOT/'addons/core/Scripts/Game/ERR/40_Chat/ERR_NativeConvoyProbe.c').read_text()
|
||||
assert convoy.index('all six native vehicles drove at least 20m')<convoy.index('m_Cover = new')
|
||||
convoy_path=Path(os.environ.get('ERR_CONVOY_PROBE_SOURCE',ROOT/'addons/core/Scripts/Game/ERR/40_Chat/ERR_NativeConvoyProbe.c'))
|
||||
convoy=convoy_path.read_text()
|
||||
assert convoy.index('all five native vehicles drove at least 20m')<convoy.index('m_Cover = new')
|
||||
assert 'if (m_Step == 4) return m_Cover.Tick(hq, now);' in convoy
|
||||
assert 'void Stop() { if (m_Cover) m_Cover.Stop(); }' in convoy
|
||||
smoke=(ROOT/'addons/core/Scripts/Game/ERR/40_Chat/ERR_NativeSmoke.c').read_text();assert 'if (m_ERRConvoyProbe) m_ERRConvoyProbe.Stop();' in smoke
|
||||
runner=ROOT/'tools/headless_workbench.py'
|
||||
stop=body(convoy_path,'void Stop(')
|
||||
assert 'if (m_Cover) m_Cover.Stop();' in stop and 'if (m_Intercept) m_Intercept.Stop();' in stop
|
||||
smoke=Path(os.environ.get('ERR_NATIVE_SMOKE_SOURCE',ROOT/'addons/core/Scripts/Game/ERR/40_Chat/ERR_NativeSmoke.c')).read_text();assert 'if (m_ERRConvoyProbe) m_ERRConvoyProbe.Stop();' in smoke
|
||||
runner=Path(os.environ.get('ERR_MOUNTED_INTERCEPT_RUNNER',ROOT/'tools/headless_workbench.py'))
|
||||
for variant in ('victory','hq-body'):
|
||||
result=subprocess.run([sys.executable,str(runner),'--smoke',variant,'--convoy-cover','--project','chat','--rounds','1','--timeout','900','--compat','/tmp/erri-unused-cover-compat','--profile','/tmp/erri-unused-cover-profile'],capture_output=True,text=True)
|
||||
assert result.returncode==2 and '--convoy-cover requires --smoke convoy' in result.stderr,result.stderr
|
||||
|
||||
Reference in New Issue
Block a user