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 "$@"
}
pass | 39 | 39 | |
total | 39 | 39 | |
| | | |
0 | pass | pass | "${empty:-}" |
1 | pass | pass | ${empty:-} |
2 | pass | pass | array with empty values |
3 | pass | pass | substitution of IFS character, quoted and unquoted |
4 | pass | pass | :- |
5 | pass | pass | - |
6 | pass | pass | Inner single quotes |
7 | pass | pass | Inner single quotes, outer double quotes |
8 | pass | pass | Inner double quotes |
9 | pass | pass | Inner double quotes, outer double quotes |
10 | pass | pass | Multiple words: no quotes |
11 | pass | pass | Multiple words: no outer quotes, inner single quotes |
12 | pass | pass | Multiple words: no outer quotes, inner double quotes |
13 | pass | pass | Multiple words: outer double quotes, no inner quotes |
14 | pass | pass | Multiple words: outer double quotes, inner double quotes |
15 | pass | pass | Multiple words: outer double quotes, inner single quotes |
16 | pass | pass | Mixed inner quotes |
17 | pass | pass | Mixed inner quotes with outer quotes |
18 | pass | pass | part_value tree with multiple words |
19 | pass | pass | part_value tree on RHS |
20 | pass | pass | Var with multiple words: no quotes |
21 | pass | pass | Multiple words: no outer quotes, inner single quotes |
22 | pass | pass | Multiple words: no outer quotes, inner double quotes |
23 | pass | pass | Multiple words: outer double quotes, no inner quotes |
24 | pass | pass | Multiple words: outer double quotes, inner double quotes |
25 | pass | pass | Multiple words: outer double quotes, inner single quotes |
26 | pass | pass | No outer quotes, Multiple internal quotes |
27 | pass | pass | Strip a string with single quotes, unquoted |
28 | pass | pass | Strip a string with single quotes, double quoted |
29 | pass | pass | The string to strip is space sensitive |
30 | pass | pass | The string to strip can be single quoted, outer is unquoted |
31 | pass | pass | Syntax error for single quote in double quote |
32 | pass | pass | "${undef-'c d'}" and "${foo%'c d'}" are parsed differently |
33 | pass | pass | $'' allowed within VarSub arguments |
34 | pass | pass | # operator with single quoted arg (dash/ash and bash/mksh disagree, reported by Crestwave) |
35 | pass | pass | / operator with single quoted arg (causes syntax error in regex in OSH, reported by Crestwave) |
36 | pass | pass | single quotes work inside character classes |
37 | pass | pass | comparison: :- operator with single quoted arg |
38 | pass | pass | Right Brace as argument (similar to #702) |