Results for sh-usage.test.sh

statusoshosh_.pyosh_.cc
pass 13122
FAIL 0111
total131313
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL sh -c
details
1pass pass FAIL empty -c input
details
2pass pass FAIL sh +c is accepted
details
3pass pass FAIL empty stdin
details
4pass pass FAIL shell obeys --help (regression for OSH)
details
5pass pass FAIL args are passed
details
6pass pass FAIL args that look like flags are passed after script
details
7pass pass FAIL args that look like flags are passed after -c
details
8pass pass pass exit with explicit arg
9pass pass pass exit with no args
10pass FAIL FAIL --rcfile in non-interactive shell prints warnings
detailsdetails
11pass pass FAIL accepts -l flag
details
12pass pass FAIL accepts --login flag (dash and mksh don't accept long flags)
details
27 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 sh -c

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

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc1 empty -c input

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc2 sh +c is accepted

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

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc3 empty stdin

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc4 shell obeys --help (regression for OSH)

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

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc5 args are passed

[osh_.cc stdout] Expected "['a', 'b']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc6 args that look like flags are passed after script

[osh_.cc stdout] Expected "['--help', '--help', '-h']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc7 args that look like flags are passed after -c

[osh_.cc stdout] Expected "['--help', '-h']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.py10 --rcfile in non-interactive shell prints warnings

[osh_.py stderr] Expected 'warned=1\nwarned=0\n', got 'warned=1\nwarned=1\n'

stdout:
==> interactive.txt <==
osh fatal error: 

==> non-interactive.txt <==
stderr:
warned=1
warned=1
osh_.cc10 --rcfile in non-interactive shell prints warnings

[osh_.cc stderr] Expected 'warned=1\nwarned=0\n', got "osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc11 accepts -l flag

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc12 accepts --login flag (dash and mksh don't accept long flags)

[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.