From 49a94c43a2dfe0710fd6ce91992795535b1d57c8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Apr 2021 15:24:37 +0300 Subject: Add --build-config option to bdep-ci command --- tests/ci.testscript | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'tests') diff --git a/tests/ci.testscript b/tests/ci.testscript index d72d872..d0407b5 100644 --- a/tests/ci.testscript +++ b/tests/ci.testscript @@ -234,6 +234,66 @@ windows = ($cxx.target.class == 'windows') } } + : build-config + : + { + +$clone_root_prj + +$init -C @cfg &prj-cfg/*** + + test.options += --no-progress + + : valid + : + { + $clone_prj; + + $* --build-config 'linux**/x86_64**' --build-config 'freebsd**' 2>>~%EOE% + %CI request is queued.*% + %reference: .+% + EOE + } + + : empty-config + : + { + $clone_prj; + + $* --build-config '/x86_64**' 2>>EOE != 0 + error: invalid --build-config option value: empty build configuration name pattern in '/x86_64**' + EOE + } + + : empty-target + : + { + $clone_prj; + + $* --build-config 'linux**/' 2>>EOE != 0 + error: invalid --build-config option value: empty build target pattern in 'linux**/' + EOE + } + + : overrides + : + { + $clone_prj; + + $* --build-config 'linux_debian_8-gcc_4.9' --builds '&gcc' 2>>EOE != 0 + error: 'builds' override specified together with --build-config + EOE + } + + : interactive + : + { + $clone_prj; + + $* --build-config 'linux**' --interactive 'linux_debian_8-gcc_4.9' 2>>EOE != 0 + error: --build-config specified together with --interactive|-i + EOE + } + } + : interactive : { -- cgit v1.1