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

Results for interactive.test.sh

statusoshosh-cpp
pass 1515
total1515
caseoshosh-cppdescription
0pass pass 'exit' in oshrc (regression)
1pass pass fatal errors continue
2pass pass interactive shell loads rcfile (when combined with -c)
3pass pass interactive shell loads files in rcdir (when combined with -c)
4pass pass nonexistent --rcdir is ignored
5pass pass shell doesn't load rcfile/rcdir if --norc is given
6pass pass interactive shell runs PROMPT_COMMAND after each command
7pass pass parse error in PROMPT_COMMAND
8pass pass runtime error in PROMPT_COMMAND
9pass pass Error message with bad oshrc file (currently ignored)
10pass pass PROMPT_COMMAND can see $?, like bash
11pass pass PROMPT_COMMAND that writes to BASH_REMATCH
12pass pass NO ASSERTIONS: Are startup files sourced before or after job control?
13pass pass HISTFILE is written in interactive shell
14pass pass HISTFILE default value
30 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped