Results for builtin-completion.test.sh

statusoshosh-cpp
pass 3736
FAIL 12
total3838
caseoshosh-cppdescription
0pass pass -A function prints functions
1pass pass Invalid syntax
2pass pass how compgen calls completion functions
3pass pass complete -o -F (git)
4pass pass compopt with invalid syntax
5pass pass compopt fails when not in completion function
6pass pass compgen -f on invalid dir
7pass pass compgen -f
8pass pass compgen -v with local vars
9pass pass compgen -v on unknown var
10pass pass compgen -v P
11pass pass compgen with actions: function / variable / file
12pass pass compgen with actions: alias, setopt
13pass pass compgen with actions: shopt
14pass FAIL compgen with action and suffix: helptopic
details
15pass pass compgen -A directory
16pass pass compgen -A file
17pass pass compgen -A user
18pass pass compgen -A command completes external commands
19pass pass compgen -A command completes functions and aliases
20pass pass compgen -A command completes builtins and keywords
21pass pass complete with nonexistent function
22pass pass complete with no action
23pass pass -o filenames and -o nospace have no effect with compgen
24pass pass -o plusdirs and -o dirnames with compgen
25pass pass compgen -o default completes files and dirs
26pass pass compgen doesn't respect -X for user-defined functions
27pass pass compgen -W words -X filter
28pass pass compgen -f -X filter -- $cur
29pass pass compgen doesn't need shell quoting
30pass pass compgen -W 'one two three'
31pass pass compgen -W evaluates code in $()
32pass pass compgen -W uses IFS, and delimiters are escaped with \
33pass pass Parse errors for compgen -W and complete -W
34pass pass Runtime errors for compgen -W
35FAIL FAIL Runtime errors for compgen -F func
detailsdetails
36pass pass compgen -W '' cmd is not a usage error
37pass pass compgen -A builtin
73 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh-cpp14 compgen with action and suffix: helptopic

[osh-cpp stdout] Expected 'false___\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
osh35 Runtime errors for compgen -F func

[osh stdout] Expected 'status=1\n', got 'foo\nbar\nstatus=0\n'

stdout:
foo
bar
status=0
stderr:
    COMPREPLY+=( $(( 1 / 0 )) )  # FATAL, but we still have candidates
                         ^
[ stdin ]:3: Divide by zero
osh-cpp35 Runtime errors for compgen -F func

[osh-cpp stdout] Expected 'status=1\n', got 'foo\nbar\nstatus=0\n'

stdout:
foo
bar
status=0
stderr:
    COMPREPLY+=( $(( 1 / 0 )) )  # FATAL, but we still have candidates
                         ^
[ stdin ]:3: Divide by zero