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 "$@" } toysh: spec test case results

Results for toysh.test.sh

statusoshosh-cpp
pass 44
ok 11
FAIL 33
total88
caseoshosh-cppdescription
0ok ok @Q
detailsdetails
1FAIL FAIL extglob $IFS 1
detailsdetails
2FAIL FAIL extglob $IFS 2
detailsdetails
3FAIL FAIL char class / extglob
detailsdetails
4pass pass patsub of $* - http://landley.net/notes.html#23-04-2020
5pass pass Brace Expansion
6pass pass {abc}<<< - http://landley.net/notes-2019.html#09-12-2019
7pass pass slice of @ and @ - http://landley.net/notes.html#23-04-2020
8 passed, 2 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh0 @Q

stdout:
a b c d
a b c d
stderr:
osh-cpp0 @Q

stdout:
a b c d
a b c d
stderr:
osh1 extglob $IFS 1

[osh stdout] Expected 'abc)d\nab+( ?d)\n_tmp abc)d\n', got 'abc)d\nabc)d\n_tmp abc)d\n'

stdout:
abc)d
abc)d
_tmp abc)d
stderr:
rm: cannot remove '_tmp': Is a directory
osh-cpp1 extglob $IFS 1

[osh-cpp stdout] Expected 'abc)d\nab+( ?d)\n_tmp abc)d\n', got 'abc)d\nabc)d\n_tmp abc)d\n'

stdout:
abc)d
abc)d
_tmp abc)d
stderr:
rm: cannot remove '_tmp': Is a directory
osh2 extglob $IFS 2

[osh stdout] Expected '=+(c=\n=d)=\n', got '=+(c d)=\n'

stdout:
=+(c d)=
stderr:
osh-cpp2 extglob $IFS 2

[osh-cpp stdout] Expected '=+(c=\n=d)=\n', got '=+(c d)=\n'

stdout:
=+(c d)=
stderr:
osh3 char class / extglob

[osh stdout] Expected '[hello]\nb\n+\n[+(])\n', got '[hello]\nb\n[+()]\n[+(])\n'

stdout:
[hello]
b
[+()]
[+(])
stderr:
rm: cannot remove '_tmp': Is a directory
osh-cpp3 char class / extglob

[osh-cpp stdout] Expected '[hello]\nb\n+\n[+(])\n', got '[hello]\nb\n[+()]\n[+(])\n'

stdout:
[hello]
b
[+()]
[+(])
stderr:
rm: cannot remove '_tmp': Is a directory