test: use mire to record some e2e tests for itself

This commit is contained in:
2026-03-25 21:03:13 +00:00
parent 952211ef93
commit 526e31d0b0
21 changed files with 345 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mire record suite/spec
echo nope
exit
n
test ! -e e2e/suite/spec/in && test ! -e e2e/suite/spec/out && echo discarded
exit
+13
View File
@@ -0,0 +1,13 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mire record suite/spec
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo nope
[?2004l
nope
[?2004h$ exit
[?2004l
exit
mire  Save recording? [y/N] n
+7
View File
@@ -0,0 +1,7 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mire record --save suite/spec
echo saved
exit
test -f e2e/suite/spec/in && test -f e2e/suite/spec/out && echo fixtures
exit
+14
View File
@@ -0,0 +1,14 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mire record --save suite/spec
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo saved
[?2004l
saved
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
mire  /home/test/e2e/suite/spec