spec test index / oilshell.org
81 passed, 0 OK, 0 not implemented, 0 BUG, 30 failed, 0 timeouts, 0 cases skipped 7 failed under osh
osh_.py | 3 1 char glob [osh_.py stdout] Expected 'bin\n', got '[b]in\n' stdout: [b]instderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined |
osh_.cc | 3 1 char glob [osh_.cc stdout] Expected 'bin\n', got '[b]in\n' stdout: [b]instderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined |
osh_.py | 7 glob can expand to command and arg [osh_.py stdout] Expected 'spec/testdata/echo.sz\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined spec/testdata/echo.s[hz] ^~~~~~~~~~~~~~~~~~~~ [ stdin ]:2: 'spec/testdata/echo.s[hz]' not found |
osh_.cc | 7 glob can expand to command and arg [osh_.cc stdout] Expected 'spec/testdata/echo.sz\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str *): Assertion `0' failed. |
osh_.cc | 20 Redirect to glob, not evaluated [osh_.cc stdout] Expected 'foo\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 24 set -o noglob [osh_.py stdout] Expected u'_tmp/spec-tmp/a.zz _tmp/spec-tmp/b.zz\n_tmp/spec-tmp/*.zz\n', got '_tmp/spec-tmp/*.zz\n_tmp/spec-tmp/*.zz\n' stdout: _tmp/spec-tmp/*.zz _tmp/spec-tmp/*.zzstderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined touch: cannot touch '_tmp/spec-tmp/a.zz': No such file or directory touch: cannot touch '_tmp/spec-tmp/b.zz': No such file or directory |
osh_.cc | 24 set -o noglob [osh_.cc stdout] Expected u'_tmp/spec-tmp/a.zz _tmp/spec-tmp/b.zz\n_tmp/spec-tmp/*.zz\n', got '_tmp/spec-tmp/*.zz\n_tmp/spec-tmp/*.zz\n' stdout: _tmp/spec-tmp/*.zz _tmp/spec-tmp/*.zzstderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined touch: cannot touch '_tmp/spec-tmp/a.zz': No such file or directory touch: cannot touch '_tmp/spec-tmp/b.zz': No such file or directory |
osh_.py | 26 shopt -s nullglob [osh_.py stdout] Expected u"['_tmp/spec-tmp/*.nonexistent']\n[]\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py _tmp/spec-tmp/*.nonexistent ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py _tmp/spec-tmp/*.nonexistent ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 26 shopt -s nullglob [osh_.cc stdout] Expected u"['_tmp/spec-tmp/*.nonexistent']\n[]\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py _tmp/spec-tmp/*.nonexistent ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py _tmp/spec-tmp/*.nonexistent ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh | 27 shopt -s failglob in command context [osh stdout] Expected "['*.ZZ']\nstatus=1\n", got "['*.ZZ']\n['*.ZZ']\nstatus=0\n" stdout: ['*.ZZ'] ['*.ZZ'] status=0stderr: |
osh_.py | 27 shopt -s failglob in command context [osh_.py stdout] Expected "['*.ZZ']\nstatus=1\n", got 'status=127\n' stdout: status=127stderr: argv.py *.ZZ ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py *.ZZ # nothing is printed, not [] ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh_.cc | 27 shopt -s failglob in command context [osh_.cc stdout] Expected "['*.ZZ']\nstatus=1\n", got 'status=127\n' stdout: status=127stderr: argv.py *.ZZ ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py *.ZZ # nothing is printed, not [] ^~~~~~~ [ stdin ]:3: 'argv.py' not found |
osh | 28 shopt -s failglob in loop context [osh stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n' stdout: *.ZZ status=0 *.ZZ status=0stderr: |
osh_.py | 28 shopt -s failglob in loop context [osh_.py stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n' stdout: *.ZZ status=0 *.ZZ status=0stderr: |
osh_.cc | 28 shopt -s failglob in loop context [osh_.cc stdout] Expected '*.ZZ\nstatus=0\nstatus=1\n', got '*.ZZ\nstatus=0\n*.ZZ\nstatus=0\n' stdout: *.ZZ status=0 *.ZZ status=0stderr: |
osh | 29 Don't glob flags on file system with GLOBIGNORE [osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz' stdout: hello zzzzzstderr: |
osh_.py | 29 Don't glob flags on file system with GLOBIGNORE [osh_.py stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz' stdout: hello zzzzzstderr: expr $0 : '.*/osh$' >/dev/null && exit 99 # disabled until cd implemented ^~~~ [ stdin ]:1: 'expr' not found |
osh_.cc | 29 Don't glob flags on file system with GLOBIGNORE [osh_.cc stdout] Expected u'-* hello zzzz?\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh | 33 PatSub of unescaped [[] and []] [osh stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n' stdout: <foo] [foo> [foo] [foo>stderr: |
osh_.py | 33 PatSub of unescaped [[] and []] [osh_.py stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n' stdout: <foo] [foo> [foo] [foo>stderr: |
osh_.cc | 33 PatSub of unescaped [[] and []] [osh_.cc stdout] Expected '<foo]\n[foo>\n<foo]\n[foo>\n', got '<foo]\n[foo>\n[foo]\n[foo>\n' stdout: <foo] [foo> [foo] [foo>stderr: |
osh | 34 PatSub of negated unescaped [[] and []] [osh stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n' stdout: [<<<< >>>>] [foo]stderr: |
osh_.py | 34 PatSub of negated unescaped [[] and []] [osh_.py stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n' stdout: [<<<< >>>>] [foo]stderr: |
osh_.cc | 34 PatSub of negated unescaped [[] and []] [osh_.cc stdout] Expected '[<<<<\n>>>>]\n[<<<<\n', got '[<<<<\n>>>>]\n[foo]\n' stdout: [<<<< >>>>] [foo]stderr: |
osh | 35 Glob unicode char [osh stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n' stdout: __a__stderr: |
osh_.py | 35 Glob unicode char [osh_.py stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n' stdout: __a__stderr: touch: cannot touch '/__a__': Permission denied touch: cannot touch '/__'$'\316\274''__': Permission denied cd $TMP ^~ [ stdin ]:3: $HOME isn't defined |
osh_.cc | 35 Glob unicode char [osh_.cc stdout] Expected '__a__ __\xce\xbc__\n', got '__a__\n' stdout: __a__stderr: touch: cannot touch '/__a__': Permission denied touch: cannot touch '/__'$'\316\274''__': Permission denied cd $TMP ^~ [ stdin ]:3: $HOME isn't defined |
osh | 36 dotglob (bash option that dashglob is roughly consistent with) [osh stdout] Expected 'other\n.foorc other\n', got 'other\nother\n' stdout: other otherstderr: |
osh_.py | 36 dotglob (bash option that dashglob is roughly consistent with) [osh_.py stdout] Expected 'other\n.foorc other\n', got '[ ] _G __a__ __\xce\xbc__ _tmp dotglob other\n[ ] _G __a__ __\xce\xbc__ _tmp dotglob other\n' stdout: [ ] _G __a__ __μ__ _tmp dotglob other [ ] _G __a__ __μ__ _tmp dotglob otherstderr: mkdir: cannot create directory '/dotglob': Permission denied cd $TMP/dotglob ^~~~ [ stdin ]:2: cd '/dotglob': No such file or directory |
osh_.cc | 36 dotglob (bash option that dashglob is roughly consistent with) [osh_.cc stdout] Expected 'other\n.foorc other\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: mkdir: cannot create directory '/dotglob': Permission denied osh_eval.dbg: cpp/posix.h:88: Str *posix::strerror(int): Assertion `0' failed. |