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
90 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 0 complete with no args and complete -p both print completion spec [osh stdout] Expected "complete -W 'foo bar' mycommand\ncomplete -W 'foo bar' mycommand\ncomplete -F myfunc other\n" Got '' [osh status] Expected 0, got 2 stdout: stderr: [Commands] __fallback: ( ) actions: FileSystemAction extra: else: predicate: DefaultPredicate prefix: suffix: __first: ( ) actions: FixedWordsAction DynamicStrDictAction DynamicProcDictAction FixedWordsAction FileSystemAction ExternalCommandAction extra: else: predicate: DefaultPredicate prefix: suffix: [Patterns] complete -p ^~ [ stdin ]:7: 'complete' got invalid flag '-p' |
osh-cpp | 0 complete with no args and complete -p both print completion spec [osh-cpp stdout] Expected "complete -W 'foo bar' mycommand\ncomplete -W 'foo bar' mycommand\ncomplete -F myfunc other\n" Got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: [Commands] __fallback: ( ) actions: FileSystemAction extra: else: predicate: DefaultPredicate prefix: suffix: __first: ( ) actions: FixedWordsAction DynamicStrDictAction DynamicProcDictAction FixedWordsAction FileSystemAction ExternalCommandAction extra: else: predicate: DefaultPredicate prefix: suffix: [Patterns] complete -p ^~ [ stdin ]:7: 'complete' got invalid flag '-p' |
osh | 44 Runtime errors for compgen -F func [osh stdout] Expected 'status=1\n', got 'foo\nbar\nstatus=0\n' stdout: foo bar status=0stderr: COMPREPLY+=( $(( 1 / 0 )) ) # FATAL, but we still have candidates ^ [ stdin ]:3: Divide by zero |
osh-cpp | 44 Runtime errors for compgen -F func [osh-cpp stdout] Expected 'status=1\n', got 'foo\nbar\nstatus=0\n' stdout: foo bar status=0stderr: COMPREPLY+=( $(( 1 / 0 )) ) # FATAL, but we still have candidates ^ [ stdin ]:3: Divide by zero |
osh | 47 complete -C vs. compgen -C [osh stdout] Expected 'foo\nbar\ncompgen=0\ncomplete=0\n', got 'compgen=1\ncomplete=0\n' stdout: compgen=1 complete=0stderr: osh warning: complete -C not implemented osh warning: complete -C not implemented |
osh-cpp | 47 complete -C vs. compgen -C [osh-cpp stdout] Expected 'foo\nbar\ncompgen=0\ncomplete=0\n', got 'compgen=1\ncomplete=0\n' stdout: compgen=1 complete=0stderr: osh warning: complete -C not implemented osh warning: complete -C not implemented |