summaryrefslogtreecommitdiff
path: root/test/lib/completions/gzip.exp
blob: 95f774c6696c1c8694ad185c12b3c6cb99922c11 (plain)
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
proc setup {} {
    save_env
}


proc teardown {} {
    assert_env_unmodified
}


setup


set test "Tab should complete"
    # Try completion
set cmd "gzip "
send "$cmd\t"
expect {
    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
    -re /@ { unresolved "$test at prompt" }
    -re eof { unresolved "eof" }
}


sync_after_int


assert_complete_homedir "gzip"
sync_after_int


teardown