Results for smoke.test.sh

statusoshosh_.pyosh_.cc
pass 1884
FAIL 01014
total181818
caseoshosh_.pyosh_.ccdescription
0pass pass pass builtin
1pass FAIL FAIL command sub
detailsdetails
2pass FAIL FAIL command sub with builtin
detailsdetails
3pass FAIL FAIL pipeline
detailsdetails
4pass FAIL FAIL pipeline with builtin
detailsdetails
5pass pass pass and-or chains
6pass FAIL FAIL here doc with var
detailsdetails
7pass FAIL FAIL here doc without var
detailsdetails
8pass FAIL FAIL here doc with builtin
detailsdetails
9pass FAIL FAIL Redirect external command
detailsdetails
10pass FAIL FAIL Redirect with builtin
detailsdetails
11pass pass FAIL Here doc with redirect
details
12pass pass FAIL "$@" "$*"
details
13pass pass FAIL $@ $*
details
14pass pass FAIL failed command
details
15pass FAIL FAIL subshell
detailsdetails
16pass pass pass for loop
17pass pass pass vars
30 passed, 0 OK, 0 not implemented, 0 BUG, 24 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py1 command sub

[osh_.py stdout] Expected '3\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc1 command sub

[osh_.cc stdout] Expected '3\n', got '\n'

stdout:
stderr: 
osh_.py2 command sub with builtin

[osh_.py stdout] Expected 'hi\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc2 command sub with builtin

[osh_.cc stdout] Expected 'hi\n', got '\n'

stdout:
stderr: 
osh_.py3 pipeline

[osh_.py stdout] Expected '1\n', got ''

stdout:
stderr: 
osh_.cc3 pipeline

[osh_.cc stdout] Expected '1\n', got ''

stdout:
stderr: 
osh_.py4 pipeline with builtin

[osh_.py stdout] Expected '1\n', got ''

stdout:
stderr: 
osh_.cc4 pipeline with builtin

[osh_.cc stdout] Expected '1\n', got ''

stdout:
stderr: 
osh_.py6 here doc with var

[osh_.py stdout] Expected u'"two\none\n', got ''

stdout:
stderr: 
osh_.cc6 here doc with var

[osh_.cc stdout] Expected u'"two\none\n', got '(cmd_value.Argv argv:[tac] arg_spids:[3])\n'

stdout:
(cmd_value.Argv argv:[tac] arg_spids:[3])
stderr:
Unhandled SimpleCommand
osh_.py7 here doc without var

[osh_.py stdout] Expected u'"two\n$v\n', got ''

stdout:
stderr: 
osh_.cc7 here doc without var

[osh_.cc stdout] Expected u'"two\n$v\n', got '(cmd_value.Argv argv:[tac] arg_spids:[0])\n'

stdout:
(cmd_value.Argv argv:[tac] arg_spids:[0])
stderr:
Unhandled SimpleCommand
osh_.py8 here doc with builtin

[osh_.py stdout] Expected 'var = value\n', got 'var = \n'

stdout:
var = 
stderr:
osh_.cc8 here doc with builtin

[osh_.cc stdout] Expected 'var = value\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py9 Redirect external command

[osh_.py stderr] Expected u'', got 'cat: /expr3.txt: No such file or directory\n'
[osh_.py status] Expected 0, got 1

stdout:
3
stderr:
cat: /expr3.txt: No such file or directory
osh_.cc9 Redirect external command

[osh_.cc stdout] Expected '3\n', got "(cmd_value.Argv argv:[expr 3] arg_spids:[0 2])\n(cmd_value.Argv argv:[cat '/expr3.txt'] arg_spids:[9 11])\n"
[osh_.cc stderr] Expected u'', got 'Unhandled SimpleCommand\nUnhandled SimpleCommand\n'

stdout:
(cmd_value.Argv argv:[expr 3] arg_spids:[0 2])
(cmd_value.Argv argv:[cat '/expr3.txt'] arg_spids:[9 11])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py10 Redirect with builtin

[osh_.py stdout] Expected 'hi\n', got 'hi\nhi\n'

stdout:
hi
hi
stderr:
osh_.cc10 Redirect with builtin

[osh_.cc stdout] Expected 'hi\n', got "hi\n(cmd_value.Argv argv:[cat '_tmp/hi.txt'] arg_spids:[8 10])\n"

stdout:
hi
(cmd_value.Argv argv:[cat '_tmp/hi.txt'] arg_spids:[8 10])
stderr:
Unhandled SimpleCommand
osh_.cc11 Here doc with redirect

[osh_.cc stdout] Expected '8 _tmp/smoke1.txt\n', got "(cmd_value.Argv argv:[cat] arg_spids:[0])\n(cmd_value.Argv argv:[wc -c '_tmp/smoke1.txt'] arg_spids:[12 14 16])\n"

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[0])
(cmd_value.Argv argv:[wc -c '_tmp/smoke1.txt'] arg_spids:[12 14 16])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc12 "$@" "$*"

[osh_.cc stdout] Expected "['a b', 'c d', 'a b c d']\n", got "(cmd_value.Argv argv:[argv.py 'a b' 'c d' 'a b c d'] arg_spids:[8 10 10 14])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'a b' 'c d' 'a b c d'] arg_spids:[8 10 10 14])
stderr:
Unhandled SimpleCommand
osh_.cc13 $@ $*

[osh_.cc stdout] Expected "['a', 'b', 'c', 'd', 'a', 'b', 'c', 'd']\n", got '(cmd_value.Argv argv:[argv.py a b c d a b c d] arg_spids:[7 9 9 9 9 11 11 11 11])\n'

stdout:
(cmd_value.Argv argv:[argv.py a b c d a b c d] arg_spids:[7 9 9 9 9 11 11 11 11])
stderr:
Unhandled SimpleCommand
osh_.cc14 failed command

[osh_.cc status] Expected 2, got 0

stdout:
(cmd_value.Argv argv:[ls '/nonexistent'] arg_spids:[0 2])
stderr:
Unhandled SimpleCommand
osh_.py15 subshell

[osh_.py stdout] Expected '1\n2\n', got ''

stdout:
stderr: 
osh_.cc15 subshell

[osh_.cc stdout] Expected '1\n2\n', got ''

stdout:
stderr: