globignore () { run-file globignore "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } globignore: spec test case results

Results for globignore.test.sh

statusbashosh
pass 140
FAIL 014
total1414
casebashoshdescription
0pass FAIL Don't glob flags on file system with GLOBIGNORE
details
1pass FAIL basic star case -> ignore files with txt extension
details
2pass FAIL basic question mark case -> ignore txt files with one char filename
details
3pass FAIL multiple patterns -> ignore files with o or h extensions
details
4pass FAIL ignore specific file
details
5pass FAIL ignore contents of specific directories
details
6pass FAIL find files in subdirectory but not the ignored pattern
details
7pass FAIL basic range cases
details
8pass FAIL range cases using character classes
details
9pass FAIL ignore everything
details
10pass FAIL treat escaped patterns literally
details
11pass FAIL resetting globignore reverts to default behaviour
details
12pass FAIL find dotfiles while ignoring . or ..
details
13pass FAIL different styles
details
14 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
14 failed under osh

Details on runs that didn't PASS

osh0 Don't glob flags on file system with GLOBIGNORE

[osh stdout] Expected u'-* hello zzzz?\n', got 'hello zzzzz'

stdout:
hello zzzzz
stderr:
osh1 basic star case -> ignore files with txt extension

[osh stdout] Expected 'basic.md\n', got 'basic.md basic.txt\n'

stdout:
basic.md basic.txt
stderr:
osh2 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.txt
stderr:
osh3 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.o
stderr:
osh4 ignore specific file

[osh stdout] Expected 'src/__main__.py\n', got 'src/__init__.py src/__main__.py\n'

stdout:
src/__init__.py src/__main__.py
stderr:
osh5 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.js
stderr:
osh6 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.txt
stderr:
osh7 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 d
stderr:
osh8 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.toml
stderr:
osh9 ignore everything

[osh stdout] Expected '*\n', got '1.txt 2.log 3.md _tmp\n'

stdout:
1.txt 2.log 3.md _tmp
stderr:
osh10 treat escaped patterns literally

[osh stdout] Expected 'escape-10.txt\n', got 'escape*.txt escape-10.txt\n'

stdout:
escape*.txt escape-10.txt
stderr:
osh11 resetting globignore reverts to default behaviour

[osh stdout] Expected '*.*\nreset.txt\n', got 'reset.txt\nreset.txt\n'

stdout:
reset.txt
reset.txt
stderr:
osh12 find dotfiles while ignoring . or ..

[osh stdout] Expected '.env\n', got '. .. .env\n'

stdout:
. .. .env
stderr:
  shopt -u globskipdots
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'globskipdots'
osh13 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.jpeg
stderr: