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
+10
View File
@@ -0,0 +1,10 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mire record --save a
echo one
exit
mire record --save nested/b
echo two
exit
mire test
exit
+35
View File
@@ -0,0 +1,35 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mire record --save a
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo one
[?2004l
one
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
mire  /home/test/e2e/a
[?2004h$ mire record --save nested/b
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo two
[?2004l
two
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
mire  /home/test/e2e/nested/b
[?2004h$ mire test
[?2004l
mire  RUN a
mire  PASS a (12 ms)
mire  RUN nested/b
mire  PASS nested/b (12 ms)
mire  Summary: total=2 passed=2 failed=0
[?2004h$ exit
[?2004l
exit
+7
View File
@@ -0,0 +1,7 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mire recoird tsest
echo a
exit
y
exit
+13
View File
@@ -0,0 +1,13 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mire recoi rd ts est
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo a
[?2004l
a
[?2004h$ exit
[?2004l
exit
mire  Save recording? [y/N] y
+10
View File
@@ -0,0 +1,10 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mire record --save a
echo one
exit
mire record --save nested/b
echo two
exit
mire test nested
exit
+24
View File
@@ -0,0 +1,24 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mire record --save a
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo one
[?2004l
one
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
mire  /home/test/e2e/a
[?2004h$ mire record --save nested/b
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo two
[?2004l
two
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
+9
View File
@@ -0,0 +1,9 @@
__MIRE_RUN_WITH_BREAKS___
mire init
mkdir -p e2e/suite
echo export FROM_SETUP=from_setup > e2e/suite/setup.sh
mire record --save suite/spec
echo $FROM_SETUP
exit
mire test suite
exit
+18
View File
@@ -0,0 +1,18 @@
[?2004h$ mire init
[?2004l
mire  Done initialising...
[?2004h$ mkdir -p e2e/suite
[?2004l
[?2004h$ echo export FROM_SETUP=from_setup > e2e/suite/setup.sh
[?2004l
[?2004h$ mire record --save suite/spec
[?2004l
mire  Run commands in the recorder shell, then type exit to finish.
[?2004h$ echo $FROM_SETUP
[?2004l
from_setup
[?2004h$ exit
[?2004l
exit
mire  Verifying recording...
mire  /home/test/e2e/suite/spec