Results for sh-usage.test.sh

statusoshosh_.pyosh_.cc
pass 12119
FAIL 124
total131313
caseoshosh_.pyosh_.ccdescription
0pass pass pass sh -c
1pass pass pass empty -c input
2pass pass pass sh +c is accepted
3pass pass pass empty stdin
4FAIL FAIL pass shell obeys --help (regression for OSH)
detailsdetails
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 pass accepts -l flag
12pass pass pass accepts --login flag (dash and mksh don't accept long flags)
32 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh4 shell obeys --help (regression for OSH)

[osh stdout] Expected 'yes\n', got ''

stdout:
stderr: 
[??? no location ???] no help topics match 'osh-usage'
osh_.py4 shell obeys --help (regression for OSH)

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

stdout:
stderr: 
[??? no location ???] no help topics match 'osh-usage'
osh_.cc5 args are passed

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

stdout:
stderr: 
  argv.py "$@"
  ^~~~~~~
[ -c flag ]:1: 'argv.py' not found
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 127

stdout:
stderr: 
  argv.py "$@"
  ^~~~~~~
'/home/uke/oil/_tmp/spec-tmp/sh-usage.test.sh/sh1.sh':1: 'argv.py' not found
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 127

stdout:
stderr: 
  argv.py "$@"
  ^~~~~~~
[ -c flag ]:1: 'argv.py' not found
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 'warned=1\nwarned=1\n'

stdout:
==> interactive.txt <==
terminate called after throwing an instance of 'NotImplementedError*'

==> non-interactive.txt <==
stderr:
warned=1
warned=1