Results for builtins.test.sh

casedashbashmkshoshdescription
0pass pass pass pass echo dashes
1pass pass pass pass exec builtin
2pass pass pass pass exec builtin with redirects
3pass pass pass pass exec builtin with here doc
4pass pass pass pass cd and $PWD
5pass pass pass pass $OLDPWD
6N-I pass N-I pass pushd/popd
detailsdetails
7pass pass pass pass Source
8pass pass pass pass Exit builtin
9ok ok pass pass Exit builtin with invalid arg
detailsdetails
10BUG pass ok pass Exit builtin with too many args
detailsdetails
11pass pass pass pass Export sets a global variable
12N-I pass N-I FAIL Export sets a global variable that persists after export -n
detailsdetailsdetails
13pass pass pass FAIL Export a global variable and unset it
details
14pass pass pass pass Export existing global variables
15pass pass pass pass Export existing local variable
16pass pass pass pass Export a local that shadows a global
17pass pass pass FAIL Export a variable before defining it
details
18pass pass pass pass Exporting a parent func variable (dynamic scope)
19BUG pass pass pass time block
details
20pass pass pass pass time pipeline
21pass pass pass pass shift
22ok pass pass pass Shifting too far
details
23ok pass BUG pass Invalid shift argument
detailsdetails
24pass pass pass pass Read builtin
25pass pass pass pass Read builtin with no newline.
26pass pass pass pass Read builtin with multiple variables
27pass pass pass pass Read builtin with not enough variables

97 passed, 5 ok, 4 known unimplemented, 3 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

dash6 pushd/popd

stdout:
stderr: 
/bin/dash: 3: pushd: not found
mksh6 pushd/popd

stdout:
stderr: 
/bin/mksh: <stdin>[3]: pushd: not found
dash9 Exit builtin with invalid arg

stdout:
stderr: 
/bin/dash: 1: exit: Illegal number: invalid
bash9 Exit builtin with invalid arg

stdout:
stderr: 
/bin/bash: line 1: exit: invalid: numeric argument required
dash10 Exit builtin with too many args

stdout:
stderr: 
mksh10 Exit builtin with too many args

stdout:
stderr: 
/bin/mksh: <stdin>[1]: exit: too many arguments
dash12 Export sets a global variable that persists after export -n

stdout:
X
X
stderr:
/bin/dash: 5: export: Illegal option -n
mksh12 Export sets a global variable that persists after export -n

stdout:
X
X
stderr:
/bin/mksh: <stdin>[5]: export: -n: unknown option
osh12 Export sets a global variable that persists after export -n

[osh stdout] Expected u'X\nX\nX\nNone\n', got 'X\nX\nX\nX\n'

stdout:
X
X
X
X
stderr:
osh13 Export a global variable and unset it

[osh stdout] Expected u'X\nX\n\nNone\n', got 'X\nX\n'
[osh status] Expected 0, got 1

stdout:
X
X
stderr:
Traceback (most recent call last):
  File "bin/osh", line 438, in <module>
    main(sys.argv)
  File "bin/osh", line 425, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 408, in OilMain
    status = OshMain(main_argv)
  File "bin/osh", line 367, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 849, in Execute
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    status = self._Dispatch(node, fork_external)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 631, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 842, in _ExecuteList
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute
    status = self._Dispatch(node, fork_external)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 553, in _Dispatch
    status = self._RunSimpleCommand(argv, more_env, fork_external)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 469, in _RunSimpleCommand
    status = self._RunBuiltin(builtin_id, argv)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 259, in _RunBuiltin
    status = builtin._Unset(argv, self.mem)
  File "/home/andy/git/oil/bin/../core/builtin.py", line 703, in _Unset
    raise NotImplementedError
NotImplementedError
osh17 Export a variable before defining it

[osh stdout] Expected 'u\n', got 'None\n'

stdout:
None
stderr:
dash19 time block

stdout:
stderr: 
time: cannot run {: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1308maxresident)k
0inputs+0outputs (0major+29minor)pagefaults 0swaps
/bin/dash: 7: Syntax error: "}" unexpected
dash22 Shifting too far

stdout:
stderr: 
/bin/dash: 2: shift: can't shift that many
dash23 Invalid shift argument

stdout:
stderr: 
/bin/dash: 1: shift: Illegal number: ZZZ
mksh23 Invalid shift argument

stdout:
stderr: