aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-08 22:19:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-09 17:28:23 +0300
commitb88ed73c1fa88976e99fa16f989920561f68f302 (patch)
tree732e00b00f46655d78d22309abd1142c54df2734 /tests/pkg-build.testscript
parent61a7600c6e2bd900b36eb94b1f9dae6a9b374db9 (diff)
Add support for pkg-build configuration variables
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r--tests/pkg-build.testscript51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 9c931bb..3834b6f 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -2569,6 +2569,57 @@ rep_fetch += -d cfg --auth all --trust-yes 2>!
}
}
+: config-vars
+:
+{
+ test.arguments += --yes
+
+ +$cfg_create cxx "config.cxx=$config.cxx" -d cfg 2>- &cfg/***
+ +cp -r $src/libhello-1.0.0 ./libhello
+ +$rep_add libhello --type dir
+ +$rep_fetch
+
+ : vars-global-local
+ :
+ {
+ $clone_cfg;
+
+ $* config.cxx.poptions=-DG -- libhello +{ config.cxx.poptions+=-DL } 2>>~%EOE%;
+ using libhello/1.0.0 (external)
+ configured libhello/1.0.0
+ %(mkdir|c\+\+|ar|ld) .+%{8}
+ updated libhello/1.0.0
+ EOE
+
+ cat cfg/libhello/build/config.build >>~%EOO%;
+ %.*
+ config.cxx.poptions = -DG -DL
+ EOO
+
+ $pkg_drop libhello
+ }
+
+ : vars-options
+ :
+ {
+ $clone_cfg;
+
+ $* config.cxx.poptions=-DG --fetch-timeout=60 -- libhello 2>>~%EOE%;
+ using libhello/1.0.0 (external)
+ configured libhello/1.0.0
+ %(mkdir|c\+\+|ar|ld) .+%{8}
+ updated libhello/1.0.0
+ EOE
+
+ cat cfg/libhello/build/config.build >>~%EOO%;
+ %.*
+ config.cxx.poptions = -DG
+ EOO
+
+ $pkg_drop libhello
+ }
+}
+
: patch
:
{