diff options
Diffstat (limited to 'tests/overrides/testscript')
-rw-r--r-- | tests/overrides/testscript | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/tests/overrides/testscript b/tests/overrides/testscript index babe57d..95a5593 100644 --- a/tests/overrides/testscript +++ b/tests/overrides/testscript @@ -35,6 +35,10 @@ builds: default build-include: linux* build-exclude: *; Only supports Linux. + network-build-config: config.libfoo.network=true + network-builds: default + network-build-include: linux* + network-build-exclude: * EOI : 1 name: libfoo @@ -42,6 +46,7 @@ summary: Modern C++ parser license: LGPLv2 builds: gcc + network-build-config: config.libfoo.network=true EOO : build-include-exclude @@ -54,6 +59,10 @@ license: LGPLv2 builds: default build-exclude: freebsd* + network-build-config: config.libfoo.network=true + network-builds: default + network-build-include: linux* + network-build-exclude: * EOI : 1 name: libfoo @@ -63,6 +72,7 @@ builds: default build-include: linux* build-exclude: *; Only supports Linux. + network-build-config: config.libfoo.network=true EOO : builds-build-include-exclude @@ -86,6 +96,96 @@ build-exclude: *; Only supports Linux. EOO + : build-configs + : + $* 'network-builds: all' 'network-build-include: windows*' 'network-build-exclude: *' \ + 'cache-build-include: freebsd*' 'cache-build-exclude: *' 'cache-builds: legacy' \ + 'sys-build-include: linux*' 'sys-build-exclude: *' \ + 'fancy-builds: gcc' <<EOI >>EOO + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + builds: all + build-include: linux* + build-include: macos* + build-include: freebsd* + build-exclude: * + network-build-config: config.libfoo.network=true + network-builds: default + network-build-include: linux* + network-build-exclude: * + cache-build-config: config.libfoo.cache=true + cache-builds: default + cache-build-include: macos* + cache-build-exclude: * + sys-build-config: ?sys:libcrypto + sys-builds: default + sys-build-include: freebsd* + sys-build-exclude: * + older-build-config: ?libbar/1.0.0 + older-builds: default + older-build-include: windows* + older-build-exclude: * + fancy-build-config: config.libfoo.fancy=true + fancy-builds: default + fancy-build-include: windows* + fancy-build-exclude: * + EOI + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + builds: all + build-include: linux* + build-include: macos* + build-include: freebsd* + build-exclude: * + default-builds: none + network-build-config: config.libfoo.network=true + network-builds: all + network-build-include: windows* + network-build-exclude: * + cache-build-config: config.libfoo.cache=true + cache-builds: legacy + cache-build-include: freebsd* + cache-build-exclude: * + sys-build-config: ?sys:libcrypto + sys-builds: default + sys-build-include: linux* + sys-build-exclude: * + older-build-config: ?libbar/1.0.0 + older-builds: none + fancy-build-config: config.libfoo.fancy=true + fancy-builds: gcc + EOO + + + : build-config-default + : + $* 'default-builds: all' 'default-build-include: windows*' 'default-build-exclude: *' <<EOI >>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 + default-builds: all + default-build-include: windows* + default-build-exclude: * + network-build-config: config.libfoo.network=true + network-builds: none + EOO + : none : $* <<EOI >>EOO @@ -141,4 +241,69 @@ EOI args:2:8: error: invalid package builds: unexpected underlying class set EOE + + + : no-build-config + : + $* 'network-builds: default' <<EOI 2>>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + EOI + cannot override 'network-builds' value: no build package configuration 'network' + EOE + + : config-builds-after-builds + : + $* 'builds: all' 'network-builds: default' <<EOI 2>>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + EOI + 'network-builds' override specified together with 'builds' override + EOE + + : config-builds-after-build-exclude + : + $* 'build-exclude: *' 'network-builds: default' <<EOI 2>>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + EOI + 'network-builds' override specified together with 'build-exclude' override + EOE + + : builds-after-config-builds + : + $* 'network-builds: default' 'builds: all' <<EOI 2>>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + EOI + 'builds' override specified together with 'network-builds' override + EOE + + : build-exclude-after-config-builds + : + $* 'network-builds: default' 'build-exclude: *' <<EOI 2>>EOE != 0 + : 1 + name: libfoo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: config.libfoo.network=true + EOI + 'build-exclude' override specified together with 'network-builds' override + EOE } |