diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-07 22:13:06 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-08 18:00:41 +0300 |
commit | 871273b374f75306a6c79c4ec067f2e4ce338172 (patch) | |
tree | d16336ce5aa46a5ee6ab0b51323d625bcbd13caa /tests/default-options/testscript | |
parent | 819741778f6ad75b5b104d2107a8fd9e30d4d4e5 (diff) |
Add proper support for option files option to load_default_options()
Diffstat (limited to 'tests/default-options/testscript')
-rw-r--r-- | tests/default-options/testscript | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/default-options/testscript b/tests/default-options/testscript index b168ca9..09bb2ec 100644 --- a/tests/default-options/testscript +++ b/tests/default-options/testscript @@ -345,3 +345,36 @@ EOO } } + +: options-file +: +{ + d = work/.build2; + mkdir -p work/.build2; + + cat <<EOI >=$d/foo; + --foo + --options-file + bar + --fox + EOI + + cat <<EOI >=$d/bar; + --bar + --options-file + baz + --box + EOI + + cat <<EOI >=$d/baz; + --baz + EOI + + $* -d $~/work -f foo >>EOO + --foo + --bar + --baz + --box + --fox + EOO +} |