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

Results for ysh-word-eval.test.sh

statusoshosh-cpp
pass 1010
FAIL 11
total1111
caseoshosh-cppdescription
0pass pass Splice in array
1pass pass Assoc array can't be spliced directly
2pass pass Can't splice string
3pass pass Can't splice undefined
4pass pass echo $[f(x)] for various types
5pass pass echo $f (x) with space is runtime error
6pass pass echo @f (x) with space is runtime error
7pass pass echo $x for various types
8pass pass Wrong sigil with $range() is runtime error
9FAIL FAIL Serializing type in a list
detailsdetails
10pass pass Wrong sigil @[max(3, 4)]
20 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh9 Serializing type in a list

[osh status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'
osh-cpp9 Serializing type in a list

[osh-cpp status] Expected 3, got 1

stdout:
3
true
___
stderr:
  var list2 = [List]
               ^~~~
[ stdin ]:9: fatal: Undefined variable 'List'