From 1c28876c1357d332951b27a1db09a5fc37f7abea Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 6 Dec 2022 20:57:09 +0300 Subject: Add support for *-build-config override --- tests/overrides/testscript | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) (limited to 'tests/overrides/testscript') diff --git a/tests/overrides/testscript b/tests/overrides/testscript index 95a5593..07c1451 100644 --- a/tests/overrides/testscript +++ b/tests/overrides/testscript @@ -100,6 +100,9 @@ : $* 'network-builds: all' 'network-build-include: windows*' 'network-build-exclude: *' \ 'cache-build-include: freebsd*' 'cache-build-exclude: *' 'cache-builds: legacy' \ + 'cache-build-config: config.libfoo.cache=true config.libfoo.buffer=1028' \ + 'deprecated-api-build-config: config.libfoo.deprecated_api=true' 'deprecated-api-builds: windows' \ + 'experimental-api-build-config: config.libfoo.experimental_api=true' \ 'sys-build-include: linux*' 'sys-build-exclude: *' \ 'fancy-builds: gcc' <>EOO : 1 @@ -148,7 +151,7 @@ network-builds: all network-build-include: windows* network-build-exclude: * - cache-build-config: config.libfoo.cache=true + cache-build-config: config.libfoo.cache=true config.libfoo.buffer=1028 cache-builds: legacy cache-build-include: freebsd* cache-build-exclude: * @@ -160,9 +163,12 @@ older-builds: none fancy-build-config: config.libfoo.fancy=true fancy-builds: gcc + deprecated-api-build-config: config.libfoo.deprecated_api=true + deprecated-api-builds: windows + experimental-api-build-config: config.libfoo.experimental_api=true + experimental-api-builds: none EOO - : build-config-default : $* 'default-builds: all' 'default-build-include: windows*' 'default-build-exclude: *' <>EOO @@ -186,6 +192,27 @@ network-builds: none EOO + : add-build-config + : + $* 'experimental-api-build-config: config.libfoo.experimental_api=true' <>EOO + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + network-builds: all + EOI + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + network-builds: all + experimental-api-build-config: config.libfoo.experimental_api=true + EOO + : none : $* <>EOO @@ -306,4 +333,16 @@ EOI 'build-exclude' override specified together with 'network-builds' override EOE + + : build-config-after-config-builds + : + $* 'deprecated-api-builds: windows' 'deprecated-api-build-config: config.libfoo.deprecated-api=true' <>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + EOI + cannot override 'deprecated-api-builds' value: no build package configuration 'deprecated-api' + EOE } -- cgit v1.1