- ooperatii_comune: verific_partener nu mai construieste SQL NULL cand contul primit e NULL (EMPTY(.NULL.) e .F. in VFP) - utile\context_watch.ps1 si utile\docs_revizie_check.ps1: masurarea contextului sesiunii si cadenta reviziei de documentatie, prin hook-uri Claude Code (instalare in docs\monitorizare-context.md) - reguli_lucru: delegare la subagenti, modificari minime si scoped, scrierea si revizuirea documentatiei, changelog strictul necesar (regulile 3, 6, 9, 11, 12) - scripturi-migrare-db: continutul unui script (scoped, fara select, idempotent) - teste noi pentru cele doua erori din achizitia de import - restul documentatiei compactata, fara pierdere de reguli Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RYbiinqXxdEqXi53x4Ro7K
19 lines
867 B
PowerShell
19 lines
867 B
PowerShell
# test_repro_anaf_path_nfjson.ps1 - rulare headless a testului de reproducere pentru
|
|
# "ANAF nu a raspuns - verificare sarita" in ROAGEST (COMUN\UTILE\NFJSON lipsa din SET PATH).
|
|
# Rulare: powershell -ExecutionPolicy Bypass -File test_repro_anaf_path_nfjson.ps1
|
|
$ErrorActionPreference = 'Stop'
|
|
$Teste = $PSScriptRoot
|
|
$Prg = Join-Path $Teste 'test_repro_anaf_path_nfjson.prg'
|
|
$Fxp = [IO.Path]::ChangeExtension($Prg, '.fxp')
|
|
$Log = Join-Path $Teste 'test_repro_anaf_path_nfjson_log.txt'
|
|
$Vfp = 'C:\Program Files (x86)\Microsoft Visual FoxPro 9\vfp9.exe'
|
|
|
|
Remove-Item $Fxp, $Log -ErrorAction SilentlyContinue
|
|
$p = Start-Process -FilePath $Vfp -ArgumentList '-A', '-T', "`"$Prg`"" -PassThru
|
|
if (-not $p.WaitForExit(240000)) {
|
|
$p.Kill()
|
|
throw 'TIMEOUT: testul nu s-a terminat in 240s'
|
|
}
|
|
if (-not (Test-Path $Log)) { throw "Lipseste logul $Log" }
|
|
Get-Content $Log
|