From 871273b374f75306a6c79c4ec067f2e4ce338172 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 7 Dec 2020 22:13:06 +0300 Subject: Add proper support for option files option to load_default_options() --- tests/default-options/testscript | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'tests/default-options/testscript') 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 <=$d/foo; + --foo + --options-file + bar + --fox + EOI + + cat <=$d/bar; + --bar + --options-file + baz + --box + EOI + + cat <=$d/baz; + --baz + EOI + + $* -d $~/work -f foo >>EOO + --foo + --bar + --baz + --box + --fox + EOO +} -- cgit v1.1