summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-28 13:21:42 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit0b5ad7a30ba9e7c6eedcb426be294bd94219310f (patch)
tree1a991acfb2a14f25ece19e13e65915dbbb48c7fc /test/snapshots
parent95202b9b22751c86f100aae9ff1c64e535dcbd70 (diff)
downloadpardes-0b5ad7a30ba9e7c6eedcb426be294bd94219310f.tar.gz
pardes-0b5ad7a30ba9e7c6eedcb426be294bd94219310f.zip
build.zig runners and testing improvements
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/chordcut.snap4
-rw-r--r--test/snapshots/cursorline.snap2
-rw-r--r--test/snapshots/dump.snap9
-rw-r--r--test/snapshots/edit.snap4
-rw-r--r--test/snapshots/exec-bigdrag.snap6
-rw-r--r--test/snapshots/exec.snap2
-rw-r--r--test/snapshots/fileedit.snap6
-rw-r--r--test/snapshots/find.snap2
-rw-r--r--test/snapshots/fsearch.snap4
-rw-r--r--test/snapshots/hscroll.snap2
-rw-r--r--test/snapshots/images.snap2
-rw-r--r--test/snapshots/layout-close.snap4
-rw-r--r--test/snapshots/layout-open.snap4
-rw-r--r--test/snapshots/leader.snap4
-rw-r--r--test/snapshots/load.snap4
-rw-r--r--test/snapshots/look-center.snap2
-rw-r--r--test/snapshots/look-dir.snap2
-rw-r--r--test/snapshots/look-file-1col.snap2
-rw-r--r--test/snapshots/look-file.snap2
-rw-r--r--test/snapshots/lookloaded.snap2
-rw-r--r--test/snapshots/lookpanes.snap2
-rw-r--r--test/snapshots/modal.snap4
-rw-r--r--test/snapshots/reflow.snap2
-rw-r--r--test/snapshots/restore.golden2
-rw-r--r--test/snapshots/rsearch.snap2
-rw-r--r--test/snapshots/shrinktag.snap2
-rw-r--r--test/snapshots/syntax.snap2
-rw-r--r--test/snapshots/tag.snap6
-rw-r--r--test/snapshots/tagcmd.snap6
-rw-r--r--test/snapshots/tagnav.golden4
-rw-r--r--test/snapshots/tagnav.snap4
-rw-r--r--test/snapshots/tagpath.snap2
-rw-r--r--test/snapshots/tinywin.snap10
-rw-r--r--test/snapshots/ttylook.snap2
-rw-r--r--test/snapshots/yankpaste.snap2
35 files changed, 61 insertions, 60 deletions
diff --git a/test/snapshots/chordcut.snap b/test/snapshots/chordcut.snap
index fc9ccb40..a412b57e 100644
--- a/test/snapshots/chordcut.snap
+++ b/test/snapshots/chordcut.snap
@@ -17,7 +17,7 @@ stable 400 5000
key i
text f.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 6 8
release right 6 8
@@ -65,7 +65,7 @@ stable 400 5000
key i
text echo B''OO g.txt
key esc
-settle 700
+settle 100
stable 400 5000
# 2-3 cancel (acme textselect2): tap right during the middle execute-drag
# over `echo B''OO` — the command never runs (no BOO anywhere)
diff --git a/test/snapshots/cursorline.snap b/test/snapshots/cursorline.snap
index a7e38423..5519287e 100644
--- a/test/snapshots/cursorline.snap
+++ b/test/snapshots/cursorline.snap
@@ -10,7 +10,7 @@ stable 400 5000
key i
text cur.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 6 8
release right 6 8
diff --git a/test/snapshots/dump.snap b/test/snapshots/dump.snap
index 2cd2ace0..9ec0b457 100644
--- a/test/snapshots/dump.snap
+++ b/test/snapshots/dump.snap
@@ -1,4 +1,5 @@
-# the Dump builtin serializes the session to /tmp/pardes-dump.zon; the ZON must
+# the Dump builtin serializes the session to $DUMP (this script's own dump
+# file under /tmp/pardes-snap/dump/); the ZON must
# be byte-identical between old and new (golden generated from the OLD binary)
file d.txt x
start 30 100 -n 3
@@ -10,9 +11,9 @@ stable 400 5000
key i
text typed-marker
key esc
-settle 700
+settle 100
stable 400 5000
press middle 35 1
release middle 35 1
-settle 800
-snapfile dump /tmp/pardes-dump.zon
+stable 600 8000
+snapfile dump $DUMP
diff --git a/test/snapshots/edit.snap b/test/snapshots/edit.snap
index 52e287d8..5a0b610e 100644
--- a/test/snapshots/edit.snap
+++ b/test/snapshots/edit.snap
@@ -5,11 +5,11 @@ wait 8000 e.txt
stable 700 20000
press left 5 10
release left 5 10
-settle 400
+stable 400 8000
key i
text hello-insert
key esc
-settle 700
+settle 100
stable 500 8000
snap inserted
snapstyle inserted
diff --git a/test/snapshots/exec-bigdrag.snap b/test/snapshots/exec-bigdrag.snap
index 9158f08d..91ff1727 100644
--- a/test/snapshots/exec-bigdrag.snap
+++ b/test/snapshots/exec-bigdrag.snap
@@ -12,7 +12,7 @@ stable 300 5000
key i
text tr -d '\n' < big.txt
key esc
-settle 400
+settle 100
press middle 105 8
drag middle 126 8
release middle 126 8
@@ -22,7 +22,7 @@ press middle 105 4
drag middle 150 30
drag middle 198 58
release middle 198 58
-settle 500
+stable 500 8000
stable 800 30000
# still alive: type and execute a marker command
press left 105 40
@@ -31,7 +31,7 @@ stable 300 5000
key i
text echo alive-o''k
key esc
-settle 300
+settle 100
press middle 105 40
drag middle 119 40
release middle 119 40
diff --git a/test/snapshots/exec.snap b/test/snapshots/exec.snap
index a66285d5..fcbc0746 100644
--- a/test/snapshots/exec.snap
+++ b/test/snapshots/exec.snap
@@ -11,7 +11,7 @@ stable 400 5000
key i
text echo MID''OK
key esc
-settle 700
+settle 100
stable 400 5000
press middle 5 8
drag middle 16 8
diff --git a/test/snapshots/fileedit.snap b/test/snapshots/fileedit.snap
index 8bbe4eac..8a29b66b 100644
--- a/test/snapshots/fileedit.snap
+++ b/test/snapshots/fileedit.snap
@@ -9,7 +9,7 @@ stable 400 5000
key i
text f.txt
key esc
-settle 700
+settle 100
press right 6 8
release right 6 8
wait 10000 line 3
@@ -21,7 +21,7 @@ stable 400 5000
key i
text EDIT''ME
key esc
-settle 700
+settle 100
stable 400 5000
snap edited
# x-select line 2 and delete it
@@ -36,5 +36,5 @@ snap undone
# Save via the tag: middle-click the Save word (after "NOR <path> ")
press middle 43 2
release middle 43 2
-settle 800
+stable 600 8000
snapfile saved /tmp/pardes-snap/fileedit/cwd/f.txt
diff --git a/test/snapshots/find.snap b/test/snapshots/find.snap
index bad36bb6..8be0e511 100644
--- a/test/snapshots/find.snap
+++ b/test/snapshots/find.snap
@@ -63,7 +63,7 @@ release middle 8 3
stable 700 10000
snap word
key esc
-settle 700
+settle 100
stable 400 5000
snap cancel
# a no-match walk empties the buffer; n then has nowhere to go. The list is
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap
index 7953b408..c4633cda 100644
--- a/test/snapshots/fsearch.snap
+++ b/test/snapshots/fsearch.snap
@@ -15,7 +15,7 @@ stable 400 5000
key i
text g.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 6 8
release right 6 8
@@ -51,7 +51,7 @@ snap back
key /
text zz
key esc
-settle 700
+settle 100
stable 400 5000
snap cancel
# a no-match search: n has nowhere to go (nothing changes, no crash)
diff --git a/test/snapshots/hscroll.snap b/test/snapshots/hscroll.snap
index 97e8c99d..3f371147 100644
--- a/test/snapshots/hscroll.snap
+++ b/test/snapshots/hscroll.snap
@@ -14,7 +14,7 @@ stable 400 5000
key i
text wide.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 8
release right 7 8
diff --git a/test/snapshots/images.snap b/test/snapshots/images.snap
index e31d57ec..696aaec1 100644
--- a/test/snapshots/images.snap
+++ b/test/snapshots/images.snap
@@ -12,7 +12,7 @@ stable 400 5000
key i
text pic.ppm
key esc
-settle 700
+settle 100
press right 6 8
release right 6 8
wait 10000 img
diff --git a/test/snapshots/layout-close.snap b/test/snapshots/layout-close.snap
index d4160221..f353f39f 100644
--- a/test/snapshots/layout-close.snap
+++ b/test/snapshots/layout-close.snap
@@ -36,7 +36,7 @@ stable 400 5000
key i
text exit
key esc
-settle 700
+settle 100
key tab
stable 700 10000
snap exit
@@ -48,7 +48,7 @@ stable 400 5000
key i
text exit
key esc
-settle 700
+settle 100
key tab
stable 700 10000
snap colclose
diff --git a/test/snapshots/layout-open.snap b/test/snapshots/layout-open.snap
index ee909f2e..36d8bb1b 100644
--- a/test/snapshots/layout-open.snap
+++ b/test/snapshots/layout-open.snap
@@ -16,7 +16,7 @@ key i
text echo one; echo two
key enter
key esc
-settle 700
+settle 100
stable 400 5000
snap before
# Alt-n: new shell below pane 0 — the bottom pane's boundary must not move
@@ -38,7 +38,7 @@ stable 400 5000
key i
text sub/f.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 27
release right 7 27
diff --git a/test/snapshots/leader.snap b/test/snapshots/leader.snap
index 70b8a4d4..c8e13b8e 100644
--- a/test/snapshots/leader.snap
+++ b/test/snapshots/leader.snap
@@ -21,7 +21,7 @@ stable 400 5000
snap spc-h
# Esc abandons the sequence: indicator gone, nothing ran, cursor untouched
key esc
-settle 700
+settle 100
stable 400 5000
snap abandoned
# an UNMAPPED key abandons too, rather than waiting: a typo must not leave the
@@ -85,6 +85,6 @@ snap help-window
# nothing worth keeping, so the key that elsewhere only drops a selection
# dismisses the whole pane and hands its height back to the pane above.
key esc
-settle 700
+settle 100
stable 700 15000
snap esc-del
diff --git a/test/snapshots/load.snap b/test/snapshots/load.snap
index 4b6372c4..561d30ee 100644
--- a/test/snapshots/load.snap
+++ b/test/snapshots/load.snap
@@ -19,8 +19,8 @@ wheel up 10 8
stable 500 8000
press middle 35 1
release middle 35 1
-settle 800
-start 30 100 -l /tmp/pardes-dump.zon
+stable 600 8000
+start 30 100 -l $DUMP
wait 8000 LOADMARK
stable 700 20000
snap loaded
diff --git a/test/snapshots/look-center.snap b/test/snapshots/look-center.snap
index 8bd3ea72..1b11bfd8 100644
--- a/test/snapshots/look-center.snap
+++ b/test/snapshots/look-center.snap
@@ -12,7 +12,7 @@ stable 400 5000
key i
text big.txt:100 big.txt:150 big.txt:2
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 8
release right 7 8
diff --git a/test/snapshots/look-dir.snap b/test/snapshots/look-dir.snap
index 38023fbd..918a5de5 100644
--- a/test/snapshots/look-dir.snap
+++ b/test/snapshots/look-dir.snap
@@ -11,7 +11,7 @@ stable 400 5000
key i
text sub
key esc
-settle 700
+settle 100
stable 400 5000
press right 6 8
release right 6 8
diff --git a/test/snapshots/look-file-1col.snap b/test/snapshots/look-file-1col.snap
index 3ef7e579..ce0ec78d 100644
--- a/test/snapshots/look-file-1col.snap
+++ b/test/snapshots/look-file-1col.snap
@@ -11,7 +11,7 @@ stable 400 5000
key i
text big.txt:40
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 8
release right 7 8
diff --git a/test/snapshots/look-file.snap b/test/snapshots/look-file.snap
index 81cf14cb..4b8b39b7 100644
--- a/test/snapshots/look-file.snap
+++ b/test/snapshots/look-file.snap
@@ -10,7 +10,7 @@ stable 400 5000
key i
text big.txt:40
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 8
release right 7 8
diff --git a/test/snapshots/lookloaded.snap b/test/snapshots/lookloaded.snap
index 89106d25..68674ba2 100644
--- a/test/snapshots/lookloaded.snap
+++ b/test/snapshots/lookloaded.snap
@@ -12,7 +12,7 @@ stable 400 5000
key i
text big.txt:40 big.txt:10
key esc
-settle 700
+settle 100
stable 400 5000
press right 7 8
release right 7 8
diff --git a/test/snapshots/lookpanes.snap b/test/snapshots/lookpanes.snap
index 98648226..64bb4a98 100644
--- a/test/snapshots/lookpanes.snap
+++ b/test/snapshots/lookpanes.snap
@@ -34,7 +34,7 @@ stable 400 5000
key i
text zqonly.txt pick.txt twin.txt
key esc
-settle 700
+settle 100
stable 400 5000
snap shells
# make the beta pane the most recently focused, so the walk has to pass it
diff --git a/test/snapshots/modal.snap b/test/snapshots/modal.snap
index 68809e18..b6769fdd 100644
--- a/test/snapshots/modal.snap
+++ b/test/snapshots/modal.snap
@@ -35,11 +35,11 @@ stable 400 5000
snap vsel
snapstyle vsel
key esc
-settle 700
+settle 100
key i
text TYPED
key esc
-settle 700
+settle 100
stable 400 5000
snap typed
key u
diff --git a/test/snapshots/reflow.snap b/test/snapshots/reflow.snap
index 0fa4a30d..931fe9d4 100644
--- a/test/snapshots/reflow.snap
+++ b/test/snapshots/reflow.snap
@@ -8,7 +8,7 @@ start 24 40
wait 8000 $
text printf 'y%.0s' $(seq 1 3000); echo do''ne
key enter
-settle 2500
+stable 600 15000
stable 700 15000
wheel up 10 10
wheel up 10 10
diff --git a/test/snapshots/restore.golden b/test/snapshots/restore.golden
index 611b9fc6..4ca6cedf 100644
--- a/test/snapshots/restore.golden
+++ b/test/snapshots/restore.golden
@@ -1,5 +1,5 @@
== snap dumped grid=100x30 cursor=4,5
-|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-dump.zon
+|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-snap/restore/dump.zon
| TTY /tmp/pardes-snap/restore/cwd Del
| $ ls
| $ echo KEEP''ME
diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap
index 16f40137..669483e9 100644
--- a/test/snapshots/rsearch.snap
+++ b/test/snapshots/rsearch.snap
@@ -17,7 +17,7 @@ stable 400 5000
key i
text code.txt
key esc
-settle 700
+settle 100
stable 400 5000
press right 6 8
release right 6 8
diff --git a/test/snapshots/shrinktag.snap b/test/snapshots/shrinktag.snap
index d82f8192..94d36282 100644
--- a/test/snapshots/shrinktag.snap
+++ b/test/snapshots/shrinktag.snap
@@ -13,7 +13,7 @@ key i
text echo one; echo two
key enter
key esc
-settle 700
+settle 100
stable 400 5000
snap before
# drag pane 0's bottom handle (its last row) up to its tag row: tag-only pane
diff --git a/test/snapshots/syntax.snap b/test/snapshots/syntax.snap
index 0aa85b71..d660fdd9 100644
--- a/test/snapshots/syntax.snap
+++ b/test/snapshots/syntax.snap
@@ -10,7 +10,7 @@ stable 400 5000
key i
text demo.zig
key esc
-settle 700
+settle 100
press right 6 8
release right 6 8
wait 10000 @import
diff --git a/test/snapshots/tag.snap b/test/snapshots/tag.snap
index 4094e841..079244e1 100644
--- a/test/snapshots/tag.snap
+++ b/test/snapshots/tag.snap
@@ -12,7 +12,7 @@ release left 40 2
stable 400 5000
snap tag-focus
send \x20t.txt
-settle 700
+stable 600 8000
stable 400 5000
snap tag-typed
key bs
@@ -22,11 +22,11 @@ key bs
stable 400 5000
snap tag-del
send .txt
-settle 700
+stable 600 8000
stable 400 5000
# Esc: out of the tag, body back in normal mode, typed tail stays as text
key esc
-settle 700
+settle 100
stable 400 5000
snap tag-exit
# re-enter the tag and look the typed word: Enter opens t.txt as a file pane
diff --git a/test/snapshots/tagcmd.snap b/test/snapshots/tagcmd.snap
index d7d002ff..d5317b8d 100644
--- a/test/snapshots/tagcmd.snap
+++ b/test/snapshots/tagcmd.snap
@@ -14,7 +14,7 @@ stable 700 20000
key i
text ZZEDIT
key esc
-settle 700
+settle 100
stable 400 5000
snap edited
# `:` -> the tag, in normal mode, cursor on the tail's first cell
@@ -27,7 +27,7 @@ stable 400 5000
snap word
# Tab executes it: c.txt is written and focus is back in the body
key tab
-settle 800
+stable 600 8000
stable 400 5000
snap saved
snapfile written /tmp/pardes-snap/tagcmd/cwd/c.txt
@@ -35,6 +35,6 @@ snapfile written /tmp/pardes-snap/tagcmd/cwd/c.txt
key :
stable 400 5000
key esc
-settle 700
+settle 100
stable 400 5000
snap escaped
diff --git a/test/snapshots/tagnav.golden b/test/snapshots/tagnav.golden
index 77d5a846..6ea682d2 100644
--- a/test/snapshots/tagnav.golden
+++ b/test/snapshots/tagnav.golden
@@ -495,7 +495,7 @@
|
|
== snap topbar-exec grid=100x30 cursor=7,2
-|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-dump.zon
+|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-snap/tagnav/dump.zon
| NOR /tmp/pardes-snap/tagnav/cwd/w.txt Save Del TTY /tmp/pardes-snap/tagnav/cwd Del
| 1 alpha $ ls
| 2 beta w.txt
@@ -526,7 +526,7 @@
|
|
== snap topbar-restore-word grid=100x30 cursor=39,0
-|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-dump.zon
+|Kill Newcol Tutor Debug NextColor Dump Restore /tmp/pardes-snap/tagnav/dump.zon
| NOR /tmp/pardes-snap/tagnav/cwd/w.txt Save Del TTY /tmp/pardes-snap/tagnav/cwd Del
| 1 alpha $ ls
| 2 beta w.txt
diff --git a/test/snapshots/tagnav.snap b/test/snapshots/tagnav.snap
index fbb9c917..3da71cd9 100644
--- a/test/snapshots/tagnav.snap
+++ b/test/snapshots/tagnav.snap
@@ -69,7 +69,7 @@ key right right
stable 400 5000
snap arrows-still-motion
key esc
-settle 700
+settle 100
stable 400 5000
snap back-to-body
# A TERMINAL MUST NOT LOSE ITS TTY MODE. Put the launch shell in raw tty mode
@@ -87,7 +87,7 @@ key l
stable 400 5000
snap tty-tag
key esc
-settle 700
+settle 100
stable 400 5000
snap tty-restored
# Enter/Tab on the BAR runs the word under the cursor through the very dispatch
diff --git a/test/snapshots/tagpath.snap b/test/snapshots/tagpath.snap
index 61181dd5..e4517ddc 100644
--- a/test/snapshots/tagpath.snap
+++ b/test/snapshots/tagpath.snap
@@ -37,7 +37,7 @@ snapstyle sel-path
# the file, which is the only way a snapshot can see what was yanked.
key y
key esc
-settle 700
+settle 100
stable 400 5000
key p
stable 400 5000
diff --git a/test/snapshots/tinywin.snap b/test/snapshots/tinywin.snap
index fab7f950..95050301 100644
--- a/test/snapshots/tinywin.snap
+++ b/test/snapshots/tinywin.snap
@@ -5,11 +5,11 @@
start 30 100
wait 8000 $
key a-n
-settle 400
+stable 400 8000
key a-n
-settle 400
+stable 400 8000
key a-n
-settle 400
+stable 400 8000
key a-n
stable 700 15000
snap stacked
@@ -20,9 +20,9 @@ snap shrunk
resize 30 100
stable 700 10000
key space c n
-settle 600
+stable 600 8000
key space c n
-settle 600
+stable 600 8000
key space c n
stable 700 15000
snap columns
diff --git a/test/snapshots/ttylook.snap b/test/snapshots/ttylook.snap
index f22cd0d1..cc746970 100644
--- a/test/snapshots/ttylook.snap
+++ b/test/snapshots/ttylook.snap
@@ -29,7 +29,7 @@ snap tokback
key i
text nn
key esc
-settle 700
+settle 100
stable 400 5000
snap insert
key u
diff --git a/test/snapshots/yankpaste.snap b/test/snapshots/yankpaste.snap
index 96082ad6..3445fe98 100644
--- a/test/snapshots/yankpaste.snap
+++ b/test/snapshots/yankpaste.snap
@@ -31,7 +31,7 @@ snap charwise-inline
# y then p. It pastes as one empty line.
key o
key esc
-settle 700
+settle 100
key y p
stable 400 5000
snap blankline