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 "$@" } builtin-eval-source: spec test case results

Results for builtin-eval-source.test.sh

statusoshosh-cpp
pass 2020
total2020
caseoshosh-cppdescription
0pass pass Eval
1pass pass eval accepts/ignores --
2pass pass eval usage
3pass pass Source
4pass pass source accepts/ignores --
5pass pass Source nonexistent
6pass pass Source with no arguments
7pass pass Source with arguments
8pass pass Source from a function, mutating argv and defining a local var
9pass pass Source with syntax error
10pass pass Eval with syntax error
11pass pass Eval in does tilde expansion
12pass pass Eval in bash does tilde expansion in array
13pass pass source works for files in current directory (bash only)
14pass pass source looks in PATH for files
15pass pass source finds files in PATH before current dir
16pass pass source works for files in subdirectory
17pass pass exit within eval (regression)
18pass pass exit within source (regression)
19pass 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