results: slice 1 test and mutation logs (#16)
This commit is contained in:
@@ -9,3 +9,5 @@ tests/t[a-z]*
|
||||
tools/bench
|
||||
tools/mkcorpus
|
||||
run/
|
||||
# node-test.log carries per-run durations; regenerate it, do not commit it
|
||||
results/node-test.log
|
||||
|
||||
+56
-17
@@ -1,4 +1,31 @@
|
||||
## control: unmutated copy (must pass)
|
||||
[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
|
||||
[OK] env sets all three keys
|
||||
[OK] empty env keys fall back to defaults
|
||||
[OK] bad env port is an error, not a default
|
||||
[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
|
||||
[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
|
||||
[OK] creates the file, sets WAL, synchronous NORMAL, busy_timeout, foreign_keys
|
||||
[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
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
@@ -32,6 +59,18 @@
|
||||
[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
|
||||
[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
|
||||
[OK] sensitive field names are masked even for unregistered values
|
||||
[OK] field names are matched case-insensitively and exactly
|
||||
[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
|
||||
[OK] crossing blocked, parallel ok
|
||||
[OK] grazing an endpoint is blocked
|
||||
[OK] no leak through shared vertex
|
||||
@@ -132,7 +171,7 @@ control: exit=0 expected_failed=0 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[OK] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/a/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/a/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
|
||||
@@ -176,7 +215,7 @@ a: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/b/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/b/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -221,7 +260,7 @@ b: exit=1 expected_failed=2 ok
|
||||
[FAILED] 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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/c/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/c/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
@@ -266,7 +305,7 @@ c: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/d1/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/d1/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -310,7 +349,7 @@ d1: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/d2/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/d2/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] shared vertex: both arms required (mutation d1/d2)
|
||||
|
||||
@@ -352,7 +391,7 @@ d2: exit=1 expected_failed=1 ok
|
||||
[FAILED] prototype scene, all tokens, doors closed and opened
|
||||
[FAILED] random wall fields, cell 32 and 25
|
||||
[FAILED] negative control: the oracle notices a missing and an invented cell
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/e/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/e/w/tests/tgeometry'
|
||||
# test exit=1; expected tests failed: 4
|
||||
[FAILED] random visibility polygons: identical cell lists
|
||||
[FAILED] random simple polygons (star-shaped, concave): identical cell lists
|
||||
@@ -417,7 +456,7 @@ e: exit=1 expected_failed=4 ok
|
||||
[FAILED] 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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/f/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/f/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped
|
||||
|
||||
@@ -479,7 +518,7 @@ f: exit=1 expected_failed=1 ok
|
||||
[FAILED] 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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/g/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/g/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] GM: ignores walls, step cap and blocked; bounds still apply
|
||||
|
||||
@@ -541,7 +580,7 @@ g: exit=1 expected_failed=1 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/h/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/h/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] corner clipping: path passes the wall end closer than r though both ends are clear
|
||||
[FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear
|
||||
@@ -602,13 +641,13 @@ h: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/i/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/i/w/tests/tmoverules'
|
||||
[FAILED] 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
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/i/w/tests/tprobing'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/i/w/tests/tprobing'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] step cap = scene default without vision, token vision radius with it
|
||||
[FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene
|
||||
@@ -671,7 +710,7 @@ i: exit=1 expected_failed=2 ok
|
||||
[FAILED] 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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/j/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/j/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] wall added within r of the circle (centre not on it) sets blocked; exactly r does not
|
||||
[FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
||||
@@ -734,7 +773,7 @@ j: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/k/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/k/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees
|
||||
[FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked
|
||||
@@ -795,7 +834,7 @@ k: exit=1 expected_failed=2 ok
|
||||
[FAILED] 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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/l/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/l/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked
|
||||
[FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed
|
||||
@@ -859,7 +898,7 @@ l: exit=1 expected_failed=3 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/m/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/m/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 3
|
||||
[FAILED] Q14: a door closed 10 px from a token: pushed to its side, clear by r, not blocked; GM-owned too
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
@@ -923,7 +962,7 @@ m: exit=1 expected_failed=3 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/n/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/n/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 2
|
||||
[FAILED] push: one side blocked by another wall -> the other side; out of bounds -> the other side
|
||||
[FAILED] push: both sides invalid -> blocked in place; door open -> free; GM can still move it
|
||||
@@ -986,7 +1025,7 @@ n: exit=1 expected_failed=2 ok
|
||||
[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
|
||||
[OK] no escape hatch: a player cannot walk through any wall of a boxed room
|
||||
Error: execution of an external program failed: '/tmp/fffmut.MS0tw0/o/w/tests/tmoverules'
|
||||
Error: execution of an external program failed: '/tmp/fffmut.rf3cGJ/o/w/tests/tmoverules'
|
||||
# test exit=1; expected tests failed: 1
|
||||
[FAILED] push: centre on the door line -> side of the previous position; no history -> left of a->b
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user