Skip to content

Commit b0ec56d

Browse files
rrthomasscop
authored andcommitted
Add more tests for ccache
1 parent ae84d53 commit b0ec56d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/lib/completions/ccache.exp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,29 @@ assert_complete_any "ccache -"
1515
sync_after_int
1616

1717

18+
set test "Tab should offer correct options from partial option"
19+
assert_complete_partial [list "--cleanup" "--clear"] "ccache" "--clea" $test
20+
sync_after_int
21+
22+
23+
set test "Tab should complete a command after ccache"
24+
assert_complete [list "stty"] "ccache stt" $test
25+
sync_after_int
26+
27+
28+
set test "Tab should complete a command after ccache --FLAG"
29+
assert_complete [list "stty"] "ccache --zero-stats stt" $test
30+
sync_after_int
31+
32+
33+
set test "Tab should complete a command's flags after ccache"
34+
assert_complete [list "--help"] "ccache ls --hel" $test
35+
sync_after_int
36+
37+
38+
set test "Tab should complete a command's flags after ccache --FLAG"
39+
assert_complete [list "--help"] "ccache --zero-stats ls --hel" $test
40+
sync_after_int
41+
42+
1843
teardown

0 commit comments

Comments
 (0)