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 | 20 | 20 | |
total | 20 | 20 | |
case | osh | osh-cpp | description |
0 | pass | pass | Eval |
1 | pass | pass | eval accepts/ignores -- |
2 | pass | pass | eval usage |
3 | pass | pass | Source |
4 | pass | pass | source accepts/ignores -- |
5 | pass | pass | Source nonexistent |
6 | pass | pass | Source with no arguments |
7 | pass | pass | Source with arguments |
8 | pass | pass | Source from a function, mutating argv and defining a local var |
9 | pass | pass | Source with syntax error |
10 | pass | pass | Eval with syntax error |
11 | pass | pass | Eval in does tilde expansion |
12 | pass | pass | Eval in bash does tilde expansion in array |
13 | pass | pass | source works for files in current directory (bash only) |
14 | pass | pass | source looks in PATH for files |
15 | pass | pass | source finds files in PATH before current dir |
16 | pass | pass | source works for files in subdirectory |
17 | pass | pass | exit within eval (regression) |
18 | pass | pass | exit within source (regression) |
19 | pass | pass | source doesn't crash when targeting a directory |
40 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped