2 TESTING "preprocessor tests:" ./test-mala
4 TEST "one longopt" --PREPROCESS --foo <<END
11 TEST "one shortopt" --PREPROCESS -f <<END
19 TEST "2 args" --PREPROCESS foo bar <<END
28 TEST "backquote expansion" --PREPROCESS \`--foo <<END
37 TEST "simple numsplit_expansion" --PREPROCESS -f00 <<END
46 TEST "simple exclam_expansion" --PREPROCESS ! --foo <<END
55 TEST "double exclam_expansion" --PREPROCESS ! --foo ! ! --bar <<END
68 TEST "simple no_expansion" --PREPROCESS --no-foo <<END
76 TEST "simple char_expansion" --PREPROCESS -foo+bar <<END
88 TEST "simple assign_expansion" --PREPROCESS --foo=bar <<END
97 TEST "simple setenv_expansion" --PREPROCESS variable=foobar <<END
108 TEST "simple envvar_expansion" --PREPROCESS --\$FOO <<END
116 TEST "simple underscore_expansion" --PREPROCESS --foo_bar <<END
124 TEST "simple bracket_expansion" --PREPROCESS [foobar] <<END
132 TEST "simple assign_contraction" --PREPROCESS variable = foobar <<END
141 TEST "complex" --PREPROCESS variable = foobar --no-\$variable <<END
148 literal: --\$variable
153 TEST "complex envvar_expansion 1" --PREPROCESS --no-\${FOO} <<END
162 TEST "complex longopt assign_expansion with spaces" --PREPROCESS --foo="bar baz" <<END
170 TEST "shortopt with number" --PREPROCESS -foo0bar <<END