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 | 22 | 22 | |
total | 22 | 22 | |
case | osh | osh-cpp | description |
0 | pass | pass | >$file touches a file |
1 | pass | pass | $(< $file) yields the contents of the file |
2 | pass | pass | $(< file) with more statements |
3 | pass | pass | < file in pipeline and subshell doesn't work |
4 | pass | pass | Leading redirect in a simple command |
5 | pass | pass | Redirect in the middle of a simple command |
6 | pass | pass | Redirect in command sub |
7 | pass | pass | Redirect in the middle of two assignments |
8 | pass | pass | Redirect in assignment |
9 | pass | pass | Redirect in function body |
10 | pass | pass | Redirect in function body is evaluated multiple times |
11 | pass | pass | Redirect in function body AND function call |
12 | pass | pass | redirect bash extensions: [[ (( for (( |
13 | pass | pass | redirect if |
14 | pass | pass | redirect case |
15 | pass | pass | redirect while |
16 | pass | pass | redirect for loop |
17 | pass | pass | redirect subshell |
18 | pass | pass | Prefix redirect for loop -- not allowed |
19 | pass | pass | Brace group redirect |
20 | pass | pass | Redirect function stdout |
21 | pass | pass | Nested function stdout redirect |
44 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped