blob: 6cb28b9aa824f912c3f711797b33bd9d3e3589d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# This is a specification of what to do in the test script.
# It is inspired by the syntax of vhs tapes.
# Give everything time to start up
Sleep 2
Type less ./data/test.file
Sleep 0.5
Type Enter
Sleep 1
Type G
Sleep 1
Expect ^Line number 1000.$
Type gg
Sleep 1
Expect ^Line number 1.$
Type Space
Sleep 1
Expect ^Line number 23.$
ExpectNot ^Line number 22.$
ExpectNot ^Line number 46.$
Type tt
Sleep 1
ExpectNot ^Line number 23.$
ExpectNot ^Line number 24.$
Expect ^Line number 25.$
Expect ^Line number 47.$
Type Gn
Sleep 1
Expect ^Line number 999.$
ExpectNot ^Line number 1000.$
# Type Up
# Sleep 1
# ExpectNot ^Line number 976.$
# Expect ^Line number 999.$
#
# Type Down
# Sleep 1
# ExpectNot ^Line number 1000.$
# Expect ^Line number 977.$
Type Escape
# vim: ft=tape
|