aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/override/test.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-22 09:23:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-22 09:23:55 +0200
commit4c3e451a852b537c04f5b73af23639902117b94f (patch)
tree951c165070ebf531580dcecef85976dc194e735d /tests/variable/override/test.sh
parentc1d08dbc56d0c8d3346deaba5d6b1946b6d711f4 (diff)
Change default var override from 'projects and subprojects' to amalgamation
The 'projects and subprojects' semantics resulted in some counter-intuitive behavior. For example, in a project with tests/ as a subproject if one builds one of the tests directly with a non-global override (say C++ compiler), then the main project would be built without the overrides. I this light, overriding in the whole amalgamation seems like the right thing to do. The old behavior can still be obtained with scope qualification, for example: b ./:foo=bar
Diffstat (limited to 'tests/variable/override/test.sh')
-rwxr-xr-xtests/variable/override/test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/variable/override/test.sh b/tests/variable/override/test.sh
index e960929..a8b08b2 100755
--- a/tests/variable/override/test.sh
+++ b/tests/variable/override/test.sh
@@ -103,6 +103,16 @@ p/d : X
p/d/t : X
EOF
+test v=X --buildfile loader ./p/ <<EOF
+/ :
+. : X
+d : X
+d/t : X
+p : X
+p/d : X
+p/d/t : X
+EOF
+
test /v=X <<EOF
/ :
. : X