222 lines
15 KiB
Plaintext
222 lines
15 KiB
Plaintext
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
|
|
... [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/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
|
|
... [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
|
|
Nim Output [Suite] visibility
|
|
... [OK] open space is a circle
|
|
... [OK] wall blocks
|
|
... [OK] shared endpoint: no leak at the vertex
|
|
... [OK] shared vertex: both arms required (mutation d1/d2)
|
|
... [OK] '<' apex: ray through the shared tip must not leak
|
|
... [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
|
... [OK] rays nudged past a corner: area just beyond a wall end is visible
|
|
... [OK] shared endpoint: closed corner of box has no crack
|
|
... [OK] collinear walls act as one
|
|
... [OK] collinear walls with a gap let light through
|
|
... [OK] T-junction: no leak and correct shadow
|
|
... [OK] pillar mid-room casts a shadow, sides visible
|
|
... [OK] closed door blocks, open door passes
|
|
... [OK] token exactly at wall endpoint
|
|
... [OK] token at endpoint of free-standing wall sees along it
|
|
... [OK] long thin corridor
|
|
... [OK] wall endpoints behind the viewer: fan stays angularly ordered
|
|
... [OK] radius clips
|
|
... [Suite] cells
|
|
... [OK] square polygon
|
|
... [OK] tiny polygon inside one cell
|
|
... [OK] polygon spanning a cell with no vertex in it
|
|
... [OK] big polygon includes fully covered interior cells
|
|
... [OK] degenerate input: fewer than 3 vertices
|
|
... [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side
|
|
... [OK] concave polygon: a notch cell is not filled
|
|
... [Suite] seed
|
|
... [OK] every token in seed sees itself and is not walled in
|
|
... [Suite] corpus (prototype leak transcripts)
|
|
... [OK] visibilityPolygon and cellsTouched equal the prototype results
|
|
... [Suite] cellsTouched differential vs prototype
|
|
... [OK] random visibility polygons: identical cell lists
|
|
... [OK] random simple polygons (star-shaped, concave): identical cell lists
|
|
... [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists
|
|
... [Suite] explored oracle (independent, tolerance 0.5 px)
|
|
... [OK] prototype scene, all tokens, doors closed and opened
|
|
... [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
|
|
... [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
|
|
... [OK] grazing an endpoint is blocked
|
|
... [OK] no leak through shared vertex
|
|
... [OK] diagonal squeeze through corner vertex of L
|
|
... [OK] moving along a collinear wall is blocked
|
|
... [OK] doors
|
|
... [OK] zero-length move
|
|
... [Suite] capsule (swept circle), r = 20
|
|
... [OK] near pillar: circle overlapping blocked, clear ok (ported)
|
|
... [OK] closed door blocks near, open door passes (ported)
|
|
... [OK] 64px corridor and doorway passable on the centreline (ported)
|
|
... [OK] corner clipping: path passes the wall end closer than r though both ends are clear
|
|
... [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear)
|
|
... [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked
|
|
... [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear
|
|
... [Suite] token on / near a wall: escape (replaces the KNOWN LIMITATION pin)
|
|
... [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot
|
|
... [OK] exactly on a wall: still refused when it would stay overlapped or run along/through
|
|
... [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype
|
|
... [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped
|
|
... [OK] escaping one wall does not excuse another
|
|
... [OK] escape from a closed door; an open door never needed an escape
|
|
... [OK] overlapping at a wall end: leave past the end without crossing
|
|
... [Suite] move rules: player vs GM, step cap, uniform nack
|
|
... [OK] owner check: not yours is mkError, no position
|
|
... [OK] GM-controlled token (no owner): players get mkError
|
|
... [OK] step cap = scene default without vision, token vision radius with it
|
|
... [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical
|
|
... [OK] an accepted move applies and echoes the destination
|
|
... [OK] player move honours walls (capsule) via moveToken
|
|
... [OK] GM: ignores walls, step cap and blocked; bounds still apply
|
|
... [Suite] blocked flag
|
|
... [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not
|
|
... [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does
|
|
... [OK] open door added or opened never sets; closing a door on a token pushes it, never sets
|
|
... [OK] blocked token: player moves refused, GM move allowed
|
|
... [OK] cleared by removing the wall; unrelated removals keep it
|
|
... [OK] cleared by opening the door; a second open is a no-op
|
|
... [OK] cleared by the GM; not re-set by itself
|
|
... [OK] wall update = remove then add
|
|
... [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear
|
|
... [OK] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
|
... [OK] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
|
... [OK] push: past the end of the door the offset shrinks (minimal), still >= r from the door
|
|
... [OK] push: one side blocked by another wall -> the other side; out of bounds -> the other side
|
|
... [OK] push: both sides invalid -> blocked in place; door open -> free; GM can still move it
|
|
... [OK] push: wall added on a token still sticks it (regression); closing on nobody pushes nobody
|
|
... [OK] doorway: token in an open doorway, door closes -> pushed clear, free; door reopens/closes again -> unchanged
|
|
... [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees
|
|
... [OK] KEEP: wall update away from one of two overlapping walls keeps blocked
|
|
... [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked
|
|
... [OK] GM drops a token inside a wall -> blocked; a door counts only while closed
|
|
... [OK] GM manual clear inside a wall: player escapes sideways, cannot cross
|
|
... [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token
|
|
... [Suite] seed scene
|
|
... [OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
|
Success: Execution finished
|
|
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tprobing (from package fff_vtt) using c backend
|
|
Nim Output [Suite] probing (T8)
|
|
... [OK] P1: probes longer than the cap get one fixed nack regardless of the scene
|
|
... [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes
|
|
... [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail)
|
|
... [OK] P4: probing cannot unflag or move a blocked token
|
|
... [OK] doors beyond the bound: opening or closing them changes no reply
|
|
Success: Execution finished
|
|
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tscenegen (from package fff_vtt) using c backend
|
|
Nim Output [Suite] scenegen (bench scenes)
|
|
... [OK] exactly n walls, deterministic per seed, seeds differ
|
|
... [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter)
|
|
... [OK] walls are non-degenerate and axis-ish segments of room-edge length
|
|
Success: Execution finished
|
|
Success: All tests passed
|