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
74 passed, 6 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 13 can't export array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
osh-cpp | 13 can't export array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
osh | 14 can't export associative array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
osh-cpp | 14 can't export associative array (strict_array) stdout: stderr: export a ^ [ stdin ]:6: fatal: Only strings can be exported (strict_array) |
osh | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh-cpp | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh | 38 local after readonly [osh stdout] Expected u'', got 'y=0\ny=\n' [osh status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh-cpp | 38 local after readonly [osh-cpp stdout] Expected u'', got 'y=0\ny=\n' [osh-cpp status] Expected 1, got 0 stdout: y=0 y=stderr: |