This commit is contained in:
2026-11-02 08:06:45 +02:00
parent e4f520092e
commit 2a4169162b
108 changed files with 3793 additions and 88 deletions
+13 -2
View File
@@ -1,4 +1,4 @@
import os,socket,subprocess,time,json,pathlib
import os,socket,subprocess,time,json,pathlib,sys
root=pathlib.Path('C:/laragon/www/sgf-tempo');os.chdir(root)
php='C:/Users/macbook/.config/investmoz/php-8.5.11/php.exe';node='C:/laragon/tools/sgf-tempo/node-v24.22.1-win-arm64/node.exe';processes=[];created=False
for port in [8007,8008]:
@@ -16,7 +16,18 @@ try:
time.sleep(.1)
if not ready:raise RuntimeError('Disposable HTTP host failed')
subprocess.run([php,'scripts/settlements-install.php',mode,'proof'],check=True)
subprocess.run([node,'scripts/settlements-interface-check.mjs'],check=True)
if '--adversarial' in sys.argv:
if '--upgraded' in sys.argv:
for mode in ['compras','sgf']:subprocess.run([php,'scripts/reversals-install.php',mode],check=True)
subprocess.run([node,'scripts/settlements-http-proof.mjs'],check=True,env={**os.environ,'SETTLEMENTS_PROOF_OUTPUT':'docs/proofs/supplier-reversals-legacy-regression-20261030.json'})
elif '--reversals' in sys.argv:
subprocess.run([node,'scripts/settlements-interface-check.mjs'],check=True,env={**os.environ,'SETTLEMENTS_REVERSAL_REGRESSION':'1'})
for mode in ['compras','sgf']:subprocess.run([php,'scripts/reversals-install.php',mode],check=True)
subprocess.run([node,'scripts/reversals-http-proof.mjs'],check=True)
else:subprocess.run([node,'scripts/settlements-interface-check.mjs'],check=True)
if '--review' in sys.argv:
print('Isolated review: Compras http://127.0.0.1:8007/demo?next=payments ; SGF http://127.0.0.1:8008/demo?next=payments . Ctrl+C stops and cleans these disposable databases.',flush=True)
while True:time.sleep(1)
finally:
for p in processes:
if p.poll() is None:p.terminate();p.wait(timeout=15)