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

Results for ysh-string.test.sh

statusyshysh-cpp
pass 2222
total2222
caseyshysh-cppdescription
0pass pass single quoted -- implicit and explicit raw
1pass pass Implicit raw single quote with backslash is a syntax error
2pass pass $"foo $x" to make "foo $x" explicit
3pass pass single quoted C strings: $'foo\n'
4pass pass raw strings and J8 strings don't work in OSH
5pass pass J8-style u'' and b'' strings in expression mode
6pass pass J8-style u'' and b'' strings in command mode
7pass pass J8-style multi-line strings u''' b''' in command mode
8pass pass Double Quoted
9pass pass Multiline strings with '' and ""
10pass pass C strings in %() array literals
11pass pass shopt parse_ysh_string
12pass pass $''' isn't a a multiline string (removed)
13pass pass """ and $""" in Expression Mode
14pass pass ''' in Expression Mode
15pass pass """ and $""" in Command Mode
16pass pass ''' in Command Mode
17pass pass r''' in Command Mode, Expression mode
18pass pass ''' in Here Doc
19pass pass ''' without parse_triple_quote
20pass pass here doc with quotes
21pass pass triple quoted and implicit concatenation
44 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped