Debian Codegraph @

t/t-completion.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . "$(dirnamescip-shell system . . dirname. "$0")/testlib.sh"
4
5 begin_test "completion: bash script"
6 (
7 set -e
8
9 gitscip-shell system . . git. lfs completion bash | cmpscip-shell system . . cmp. - "$COMPLETIONSDIR/git-lfs-completion.bash"
10 )
11 end_test
12
13 begin_test "completion: fish script"
14 (
15 set -e
16
17 gitscip-shell system . . git. lfs completion fish | cmpscip-shell system . . cmp. - "$COMPLETIONSDIR/git-lfs-completion.fish"
18 )
19 end_test
20
21 begin_test "completion: zsh script"
22 (
23 set -e
24
25 gitscip-shell system . . git. lfs completion zsh | cmpscip-shell system . . cmp. - "$COMPLETIONSDIR/git-lfs-completion.zsh"
26 )
27 end_test
28
29 begin_test "completion: missing shell argument"
30 (
31 set -e
32
33 gitscip-shell system . . git. lfs completion 2>&1 | teescip-shell system . . tee. completion.log
34 grepscip-shell system . . grep. "accepts 1 arg" completion.log
35 )
36 end_test
37
38 begin_test "completion: invalid shell argument"
39 (
40 set -e
41
42 gitscip-shell system . . git. lfs completion ksh 2>&1 | teescip-shell system . . tee. completion.log
43 grepscip-shell system . . grep. "invalid argument" completion.log
44 )
45 end_test