From 112916e8d7e40af118e58a3ded2825a37d7e8a93 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 27 Oct 2022 19:11:12 +0300 Subject: Add *-build-config, *-builds, *-build-{include,exclude} package manifest values --- tests/manifest/testscript | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) (limited to 'tests/manifest/testscript') 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 + : 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 + : 1 + name: foo + version: 2.0.0 + summary: Modern C++ parser + license: LGPLv2 + network-build-config: ; None. + EOF + + : undefined + : + { + $* <>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 + : + { + $* <"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 + : + { + $* <"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 -- cgit v1.1