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
status | osh | osh-cpp | |
pass | 1 | 1 | |
FAIL | 1 | 1 | |
total | 2 | 2 | |
case | osh | osh-cpp | description |
0 | pass | pass | K and V are variables in (( array[K] = V )) |
1 | FAIL | FAIL | when are variables set with 'test -v' |
details | details |
2 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 1 when are variables set with 'test -v' [osh stdout] Expected 'unset=1\na=1\nA=1\na=0\nA=0\n', got 'unset=1\na=0\nA=0\na=0\nA=0\n' stdout: unset=1 a=0 A=0 a=0 A=0stderr: |
osh-cpp | 1 when are variables set with 'test -v' [osh-cpp stdout] Expected 'unset=1\na=1\nA=1\na=0\nA=0\n', got 'unset=1\na=0\nA=0\na=0\nA=0\n' stdout: unset=1 a=0 A=0 a=0 A=0stderr: |