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 | 10 | 10 | |
FAIL | 1 | 1 | |
total | 11 | 11 | |
case | osh | osh-cpp | description |
0 | pass | pass | precedence of 1:3 vs comparison |
1 | pass | pass | precedence of 1:3 vs bitwise operator |
2 | pass | pass | subscript and slice :| 1 2 3 4 | |
3 | pass | pass | slice subscripts are adjusted like Python |
4 | pass | pass | subscript and slice of List |
5 | pass | pass | expressions and negative indices |
6 | pass | pass | Index with expression |
7 | pass | pass | Copy with a[:] |
8 | pass | pass | Iterate over range |
9 | pass | pass | Loops over bogus ranges terminate |
10 | FAIL | FAIL | Slices with Multiple Dimensions (for TSV8?) |
details | details |
20 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 10 Slices with Multiple Dimensions (for TSV8?) [osh stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got '' [osh status] Expected 0, got 2 stdout: stderr: qtt pretty :mytable <<< ''' ^~~ [ stdin ]:1: 'qtt' not found (OILS-ERR-100) var t1 = mytable[2:, :] ^ [ stdin ]:8: Only 1 subscript is accepted |
osh-cpp | 10 Slices with Multiple Dimensions (for TSV8?) [osh-cpp stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: qtt pretty :mytable <<< ''' ^~~ [ stdin ]:1: 'qtt' not found (OILS-ERR-100) var t1 = mytable[2:, :] ^ [ stdin ]:8: Only 1 subscript is accepted |