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

Results for command-parsing.test.sh

statusoshosh-cpp
pass 22
ok 33
total55
caseoshosh-cppdescription
0pass pass Prefix env on assignment
1pass pass Redirect on assignment (enabled 7/2019)
2ok ok Prefix env on control flow
detailsdetails
3ok ok Redirect on control flow (ignored in OSH)
detailsdetails
4ok ok Redirect on control flow with oil:all (parse_ignored)
detailsdetails
4 passed, 6 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh2 Prefix env on control flow

stdout:
stderr: 
    E=env break
    ^~
[ stdin ]:3: Control flow shouldn't have environment bindings
osh-cpp2 Prefix env on control flow

stdout:
stderr: 
    E=env break
    ^~
[ stdin ]:3: Control flow shouldn't have environment bindings
osh3 Redirect on control flow (ignored in OSH)

stdout:
NO
stderr:
osh-cpp3 Redirect on control flow (ignored in OSH)

stdout:
NO
stderr:
osh4 Redirect on control flow with oil:all (parse_ignored)

stdout:
stderr: 
    break > _tmp/r.txt
    ^~~~~
[ stdin ]:4: Control flow shouldn't have redirects
osh-cpp4 Redirect on control flow with oil:all (parse_ignored)

stdout:
stderr: 
    break > _tmp/r.txt
    ^~~~~
[ stdin ]:4: Control flow shouldn't have redirects