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
48 passed, 2 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 22 array literal inside array is a parse error [osh status] Expected 2, got 1 stdout: stderr: a=( inside=() ) ^ [ stdin ]:1: fatal: Unexpected array literal |
osh-cpp | 22 array literal inside array is a parse error [osh-cpp status] Expected 2, got 1 stdout: stderr: a=( inside=() ) ^ [ stdin ]:1: fatal: Unexpected array literal |
osh | 23 array literal inside loop is a parse error [osh status] Expected 2, got 1 stdout: stderr: for x in a=(); do ^ [ stdin ]:2: fatal: Unexpected array literal |
osh-cpp | 23 array literal inside loop is a parse error [osh-cpp status] Expected 2, got 1 stdout: stderr: for x in a=(); do ^ [ stdin ]:2: fatal: Unexpected array literal |
osh | 24 array literal in case [osh status] Expected 2, got 1 stdout: stderr: case a=() in ^ [ stdin ]:2: fatal: Unexpected array literal |
osh-cpp | 24 array literal in case [osh-cpp status] Expected 2, got 1 stdout: stderr: case a=() in ^ [ stdin ]:2: fatal: Unexpected array literal |
osh | 26 leading =word is not allowed regardless of shopt -s parse_equals stdout: stderr: =word ^ [ stdin ]:1: =word isn't allowed. Hint: add a space after =, or quote it |
osh-cpp | 26 leading =word is not allowed regardless of shopt -s parse_equals stdout: stderr: =word ^ [ stdin ]:1: =word isn't allowed. Hint: add a space after =, or quote it |