diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-10-27 19:11:12 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-11-23 19:41:21 +0300 |
commit | 112916e8d7e40af118e58a3ded2825a37d7e8a93 (patch) | |
tree | 764fe6f233f6bafc7f47f8d9417559a4a3c8753d /tests/manifest | |
parent | b67a3e4eaa09201a8e22ccfba8fe510568a60e7f (diff) |
Add *-build-config, *-builds, *-build-{include,exclude} package manifest values
Diffstat (limited to 'tests/manifest')
-rw-r--r-- | tests/manifest/testscript | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/manifest/testscript b/tests/manifest/testscript index 440e61f..336b288 100644 --- a/tests/manifest/testscript +++ b/tests/manifest/testscript @@ -541,6 +541,71 @@ EOI } + : build-config + : + { + : multiple + : + { + $* <<EOF >>EOF + : 1 + name: foo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + bar-build-config: config.foo.bar = true; Bar. + bar-builds: all + baz-build-config: config.foo.baz = true; Baz. + EOF + } + + : empty + : + $* <<EOF >>EOF + : 1 + name: foo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: ; None. + EOF + + : undefined + : + { + $* <<EOF >>EOF + : 1 + name: foo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + bar-builds: default + baz-build-config: config.foo.bar = true + EOF + } + + : redefinition + : + { + $* <<EOI 2>"stdin:3:1: error: build configuration redefinition" != 0 + : 1 + bar-build-config: config.foo.bar = true + bar-build-config: config.foo.bar = true + EOI + } + + : unexpected-underlying-class-set + : + { + $* <<EOI 2>"stdin:4:13: error: invalid package builds: unexpected underlying class set" != 0 + : 1 + bar-build-config: config.foo.bar = true + bar-builds: all + bar-builds: all + EOI + } + } + : depends : { @@ -3773,6 +3838,10 @@ build-include: linux* build-include: freebsd* build-exclude: *; Only supports Linux and FreeBSD. + network-build-config: config.libfoo.network=true; Enable networking API. + network-builds: default + network-build-include: linux* + network-build-exclude: *; Only supports Linux. bootstrap-build:\ project = libfoo |