spec test index / oilshell.org
status | bash | osh | |
pass | 14 | 0 | |
FAIL | 0 | 14 | |
total | 14 | 14 | |
case | bash | osh | description |
0 | pass | FAIL | Don't glob flags on file system with GLOBIGNORE |
details | |||
1 | pass | FAIL | basic star case -> ignore files with txt extension |
details | |||
2 | pass | FAIL | basic question mark case -> ignore txt files with one char filename |
details | |||
3 | pass | FAIL | multiple patterns -> ignore files with o or h extensions |
details | |||
4 | pass | FAIL | ignore specific file |
details | |||
5 | pass | FAIL | ignore contents of specific directories |
details | |||
6 | pass | FAIL | find files in subdirectory but not the ignored pattern |
details | |||
7 | pass | FAIL | basic range cases |
details | |||
8 | pass | FAIL | range cases using character classes |
details | |||
9 | pass | FAIL | ignore everything |
details | |||
10 | pass | FAIL | treat escaped patterns literally |
details | |||
11 | pass | FAIL | resetting globignore reverts to default behaviour |
details | |||
12 | pass | FAIL | find dotfiles while ignoring . or .. |
details | |||
13 | pass | FAIL | different styles |
details |
14 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped 14 failed under osh
osh | 0 Don't glob flags on file system with GLOBIGNORE [osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz' stdout: hello zzzzzstderr: |
osh | 1 basic star case -> ignore files with txt extension [osh stdout] Expected 'basic.md\n', got 'basic.md basic.txt\n' stdout: basic.md basic.txtstderr: |
osh | 2 basic question mark case -> ignore txt files with one char filename [osh stdout] Expected '10.txt\n', got '1.txt 10.txt\n' stdout: 1.txt 10.txtstderr: |
osh | 3 multiple patterns -> ignore files with o or h extensions [osh stdout] Expected 'hello hello.c\n', got 'hello hello.c hello.h hello.o\n' stdout: hello hello.c hello.h hello.ostderr: |
osh | 4 ignore specific file [osh stdout] Expected 'src/__main__.py\n', got 'src/__init__.py src/__main__.py\n' stdout: src/__init__.py src/__main__.pystderr: |
osh | 5 ignore contents of specific directories [osh stdout] Expected 'compose/base.compose.yaml compose/dev.compose.yaml src/a.js src/b.js\n' Got 'compose/base.compose.yaml compose/dev.compose.yaml dist/index.js node_modules/package.js src/a.js src/b.js\n' stdout: compose/base.compose.yaml compose/dev.compose.yaml dist/index.js node_modules/package.js src/a.js src/b.jsstderr: |
osh | 6 find files in subdirectory but not the ignored pattern [osh stdout] Expected 'dir1/a.txt dir2/a.txt\n', got 'dir1/a.txt dir1/ignore.txt dir2/a.txt dir2/ignore.txt\n' stdout: dir1/a.txt dir1/ignore.txt dir2/a.txt dir2/ignore.txtstderr: |
osh | 7 basic range cases [osh stdout] Expected 'A B C D c d\nD a b c d\na b\n', got 'A B C D a b c d\nA B C D a b c d\nA B C D a b c d\n' stdout: A B C D a b c d A B C D a b c d A B C D a b c dstderr: |
osh | 8 range cases using character classes [osh stdout] Expected '.env _testing.py\n20231114.log has space.docx pyproject.toml\n.env 20231114.log _testing.py pyproject.toml\nhas space.docx pyproject.toml\n' Got '20231114.log _testing.py has space.docx pyproject.toml\n20231114.log _testing.py has space.docx pyproject.toml\n20231114.log _testing.py has space.docx pyproject.toml\n20231114.log _testing.py has space.docx pyproject.toml\n' stdout: 20231114.log _testing.py has space.docx pyproject.toml 20231114.log _testing.py has space.docx pyproject.toml 20231114.log _testing.py has space.docx pyproject.toml 20231114.log _testing.py has space.docx pyproject.tomlstderr: |
osh | 9 ignore everything [osh stdout] Expected '*\n', got '1.txt 2.log 3.md _tmp\n' stdout: 1.txt 2.log 3.md _tmpstderr: |
osh | 10 treat escaped patterns literally [osh stdout] Expected 'escape-10.txt\n', got 'escape*.txt escape-10.txt\n' stdout: escape*.txt escape-10.txtstderr: |
osh | 11 resetting globignore reverts to default behaviour [osh stdout] Expected '*.*\nreset.txt\n', got 'reset.txt\nreset.txt\n' stdout: reset.txt reset.txtstderr: |
osh | 12 find dotfiles while ignoring . or .. [osh stdout] Expected '.env\n', got '. .. .env\n' stdout: . .. .envstderr: shopt -u globskipdots ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'globskipdots' |
osh | 13 different styles [osh stdout] Expected '*\n*\n*\n*\n', got '_tmp image.jpeg\n_tmp image.jpeg\n_tmp image.jpeg\n_tmp image.jpeg\n' stdout: _tmp image.jpeg _tmp image.jpeg _tmp image.jpeg _tmp image.jpegstderr: |