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 | 14 | 14 | |
| ok | 1 | 1 | |
| total | 15 | 15 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | (( )) result |
| 1 | pass | pass | negative number is true |
| 2 | pass | pass | (( )) in if statement |
| 3 | pass | pass | (( )) |
| 4 | pass | pass | (( )) with arrays |
| 5 | pass | pass | (( )) with error |
| 6 | pass | pass | bash and mksh: V in (( a[K] = V )) gets coerced to integer |
| 7 | ok | ok | bash: K in (( A[K] = V )) is a constant string |
| details | details | ||
| 8 | pass | pass | BUG: (( V = A[K] )) doesn't retrieve the right value |
| 9 | pass | pass | bash: V in (( A["K"] = V )) gets coerced to integer |
| 10 | pass | pass | literal strings inside (( )) |
| 11 | pass | pass | (( )) with redirect |
| 12 | pass | pass | Assigning whole raray (( b = a )) |
| 13 | pass | pass | set associative array |
| 14 | pass | pass | Example of incrementing associative array entry with var key (ble.sh) |
28 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
| osh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V ))
^
[ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
|
| osh-cpp | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V ))
^
[ stdin ]:4: fatal: Assoc array keys must be strings: $x 'x' "$x" etc. (OILS-ERR-101)
|