BBS:      TELESC.NET.BR
Assunto:  src/doors/clans-src/tests/fixtures/gtest/attack_all.scriptsrc/doors/cl
De:       Deuc¨
Data:     Sun, 15 Mar 2026 01:06:05 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/c56e95892537309a61d377f4
Added Files:
	src/doors/clans-src/tests/fixtures/gtest/attack_all.script
Modified Files:
	src/doors/clans-src/docs/gtest.txt src/doors/clans-src/src/gtest.c src/doors/clans-src/tests/test_gtest.sh
Log Message:
Add scripted manual combat to gtest (-c fight, -a ACTION)

New "fight" command runs Fight_Fight with AutoFight=false, requiring
player input for each combat round.  Input comes from either:

  -a ACTION   Fixed action (A=attack, R=run, I=parry) applied to
              every combat prompt via a GetAnswer hook
  -s SCRIPT   Script file with Choice=/Key= lines

Combined with -r (fixed random), -a gives fully deterministic manual
combat without a script file.  This makes it easy to test win, loss,
and run scenarios.

Change -r priority to check before script mode so -r and -s can be
combined  the script provides Choice=/Key= lines while -r handles
all Random= calls, avoiding the need to predict the exact number of
random calls per combat round.

Add 10 new integration tests: manual attack win, run away, and
deterministic reproducibility.  Total: 43 gtest tests.

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]