results: slice 1 test and mutation logs (#16)

This commit is contained in:
2026-11-14 21:41:33 +01:00
parent 86e7ad397d
commit c89c8eab42
3 changed files with 112 additions and 17 deletions
+54
View File
@@ -1,5 +1,42 @@
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/tconfig (from package fff_vtt) using c backend
Nim Output [Suite] config defaults
... [OK] defaults: dev origin, port 9000, state dir run
... [OK] state dir is joined, not concatenated
... [OK] bind address is fixed 127.0.0.1 and not a config key
... [Suite] config env
... [OK] env sets all three keys
... [OK] empty env keys fall back to defaults
... [OK] bad env port is an error, not a default
... [Suite] config flags
... [OK] flags override env
... [OK] --key=value and --key value are both accepted
... [OK] trailing slash on the origin and on the state dir is dropped
... [OK] root state dir is not mangled
... [OK] last flag wins
... [Suite] config validation
... [OK] unknown flag
... [OK] positional arguments are refused
... [OK] port must be a number in 1..65535
... [OK] origin needs an http(s) scheme and a host
... [OK] origin has no path, query or fragment
... [OK] origin host is a DNS name or IPv4 literal, not arbitrary text
... [OK] origin keeps an explicit port and lowercases the scheme and host
... [OK] state dir must be non-empty
... [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/tdb (from package fff_vtt) using c backend
Nim Output [Suite] open
... [OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
... [Suite] migrate
... [OK] fresh DB: applies every step, sets user_version and records history
... [OK] re-open is a no-op: no step applied, history and timestamps untouched
... [OK] history and user_version must agree
... [OK] a DB from a newer server is refused, not downgraded
... [OK] a failing step rolls back: no DDL, no history, version unchanged
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/testutil (from package fff_vtt) using c backend
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tgeometry (from package fff_vtt) using c backend
@@ -43,6 +80,23 @@
... [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/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
... [OK] a secret inside free text, the event name or a nested value is scrubbed too
... [OK] redact() is usable on any string
... [OK] two secrets, one a prefix of the other, are both removed
... [OK] registering a short value is refused: it would shred every line
... [Suite] redaction by field name
... [OK] sensitive field names are masked even for unregistered values
... [OK] field names are matched case-insensitively and exactly
... [Suite] line format and levels
... [OK] every line carries an ISO-8601 UTC timestamp, the level and the event
... [OK] values with spaces or quotes are quoted, so one line stays one record
... [OK] a value cannot forge a second log line
... [OK] messages below the level are dropped
... [OK] no fields is still one valid line
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tmoverules (from package fff_vtt) using c backend
Nim Output [Suite] pathClear, r = 0 (ported prototype move tests)
... [OK] crossing blocked, parallel ok