File: complete_commit.exp

package info (click to toggle)
monotone 1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,984 kB
  • ctags: 8,622
  • sloc: cpp: 86,450; sh: 6,906; perl: 924; makefile: 813; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (29 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
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
# This test checks that monotone.bash_completion can handle arguments that
# are specified as 'PATH ...'

send_user "\n===== BEGIN complete_commit  =====\n"
expect -re "@ $"
send "\n[escape $mtn_cmd] commit -m 'foobar' "
expect {
    -ex " commit " {}
    timeout { failure "' commit '"; exit }
}

send "\t"
expect {
    -ex "commit-test1" {}
    timeout { failure "'commit-test1'"; exit }
}
expect {
    -ex "commit-test2" {}
    timeout { failure "'commit-test2'"; exit }
}

send "commit-test1 commit-test\t"
expect {
    -ex "commit-test2" {}
    timeout { failure "'commit-test1 commit-test2'"; exit }
}

send_user "\n===== END complete_commit  =====\n"
success