run-file () { local spec_name=$1; shift; local spec_file=spec/$spec_name.test.sh; local suite; suite=$(test/sh_spec.py --print-spec-suite $spec_file); local spec_subdir; case $suite in osh) spec_subdir='osh-cpp' ;; ysh) spec_subdir='ysh-cpp' ;; *) die "Invalid suite $suite" ;; esac; local base_dir=_tmp/spec/$spec_subdir; mkdir -v -p $base_dir; sh-spec $spec_file --timeout 10 --oils-bin-dir $PWD/bin --oils-cpp-bin-dir $REPO_ROOT/_bin/cxx-asan --tsv-output $base_dir/${spec_name}.tsv "$@" }
spec test index / oilshell.org
status | osh | osh-cpp | |
FAIL | 14 | 14 | |
total | 14 | 14 | |
case | osh | osh-cpp | description |
0 | FAIL | FAIL | Don't glob flags on file system with GLOBIGNORE |
details | details | ||
1 | FAIL | FAIL | basic star case -> ignore files with txt extension |
details | details | ||
2 | FAIL | FAIL | basic question mark case -> ignore txt files with one char filename |
details | details | ||
3 | FAIL | FAIL | multiple patterns -> ignore files with o or h extensions |
details | details | ||
4 | FAIL | FAIL | ignore specific file |
details | details | ||
5 | FAIL | FAIL | ignore contents of specific directories |
details | details | ||
6 | FAIL | FAIL | find files in subdirectory but not the ignored pattern |
details | details | ||
7 | FAIL | FAIL | basic range cases |
details | details | ||
8 | FAIL | FAIL | range cases using character classes |
details | details | ||
9 | FAIL | FAIL | ignore everything |
details | details | ||
10 | FAIL | FAIL | treat escaped patterns literally |
details | details | ||
11 | FAIL | FAIL | resetting globignore reverts to default behaviour |
details | details | ||
12 | FAIL | FAIL | find dotfiles while ignoring . or .. |
details | details | ||
13 | FAIL | FAIL | different styles |
details | details |
0 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-cpp | 0 Don't glob flags on file system with GLOBIGNORE [osh-cpp stdout] Expected u'-* hello zzzz?\n', got '' [osh-cpp status] Expected 0, got 99 stdout: stderr: |
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-cpp | 1 basic star case -> ignore files with txt extension [osh-cpp 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-cpp | 2 basic question mark case -> ignore txt files with one char filename [osh-cpp 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-cpp | 3 multiple patterns -> ignore files with o or h extensions [osh-cpp 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-cpp | 4 ignore specific file [osh-cpp 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-cpp | 5 ignore contents of specific directories [osh-cpp 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-cpp | 6 find files in subdirectory but not the ignored pattern [osh-cpp 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-cpp | 7 basic range cases [osh-cpp 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-cpp | 8 range cases using character classes [osh-cpp 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-cpp | 9 ignore everything [osh-cpp 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-cpp | 10 treat escaped patterns literally [osh-cpp 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-cpp | 11 resetting globignore reverts to default behaviour [osh-cpp 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-cpp | 12 find dotfiles while ignoring . or .. [osh-cpp 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: |
osh-cpp | 13 different styles [osh-cpp 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: |