results: slice 2 test and mutation logs (#17)

This commit is contained in:
2026-11-14 22:13:09 +01:00
parent f85665b53e
commit 8ff66530d8
2 changed files with 94 additions and 17 deletions
+48
View File
@@ -1,5 +1,20 @@
Info: Using the environment variable: NIMBLE_DIR='/home/davide/Projects/GDR/FFF_vtt/.devbox/nimble'
Info: using /nix/store/0cbdz34lsakfirycixckf6ypsd8hazhg-x86_64-unknown-linux-gnu-nim-wrapper-2.2.12/bin/nim for compilation
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tauth (from package fff_vtt) using c backend
Nim Output [Suite] GM key (fff-vtt gm-key)
... [OK] first run creates the single GM and prints a key; re-run prints the same key
... [OK] --new rotates: new key, old key invalid, GM sessions revoked, same player
... [Suite] player keys
... [OK] key.create: unnamed player, working key, counts toward the cap
... [OK] key comparison ignores case, dashes and spaces; a wrong key finds nobody
... [OK] six non-GM players are allowed (unused keys count); the cap is a server check
... [OK] key.replace: new key, old key invalid, sessions revoked, identity kept
... [OK] key.replace refuses the GM and unknown ids
... [OK] player.remove deletes key and sessions, frees the slot; the GM cannot be removed
... [Suite] sessions
... [OK] only the hash is stored; the token itself appears nowhere
... [OK] unknown hash gives no player; revoking one player leaves the other alone
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tconfig (from package fff_vtt) using c backend
Nim Output [Suite] config defaults
... [OK] defaults: dev origin, port 9000, state dir run
@@ -27,6 +42,34 @@
... [OK] --help is not an error and asks for usage, even with a broken env
... [OK] usage lists the three keys and says the bind is fixed
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tconns (from package fff_vtt) using c backend
Nim Output [Suite] total cap
... [OK] 16 reservations succeed, the 17th is refused
... [OK] a cancelled reservation gives the slot back
... [OK] activated connections keep the total cap; removing one frees a slot
... [Suite] per-player cap
... [OK] the 5th connection of one player evicts that player's oldest
... [OK] another player's connections are never evicted
... [OK] the GM is capped like anyone else (caps are per player, not per role)
... [Suite] revocation
... [OK] revokePlayer returns every live connection of that player and nothing else
... [OK] remove works by conn id; an unknown id is a no-op
... [OK] connForWs finds the registered socket (mummy hands the same value back)
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tcrypto (from package fff_vtt) using c backend
Nim Output [Suite] sha256
... [OK] FIPS 180-4 known answers
... [OK] padding boundaries: 55, 56 and 64 byte messages differ and are stable
... [Suite] player keys
... [OK] 20 symbols in 5 groups of 4, no look-alike characters
... [OK] 100 generated keys are distinct
... [OK] generator output is upper-case; normalization is case/dash/space insensitive
... [OK] generated keys draw from the whole alphabet (uniform sampling sanity)
... [Suite] session tokens
... [OK] 32 bytes hex encoded, distinct
... [Suite] constant-time compare
... [OK] equal only for identical strings, including the empty case
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tdb (from package fff_vtt) using c backend
Nim Output [Suite] open
... [OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
@@ -80,6 +123,11 @@
... [OK] random wall fields, cell 32 and 25
... [OK] negative control: the oracle notices a missing and an invented cell
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tinstancelock (from package fff_vtt) using c backend
Nim Output [Suite] instance lock
... [OK] acquires, creates the lock file, releases and re-acquires
... [OK] release is idempotent
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tlogging (from package fff_vtt) using c backend
Nim Output [Suite] redaction by value
... [OK] a secret passed as a field value never appears in the output