diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:45:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-12 15:45:13 +0200 |
commit | f368a0c558bf3a20eee754b622273421ee58ec41 (patch) | |
tree | c5ac075f34c255dd5dca1b5049b0be5c5bd8280a /tests/variable/override/test.sh | |
parent | 1aecf78130e2fbe24e54c8e47cfa0f1670e0dd5e (diff) |
Add support for scope-qualification of overrides, scope visibility
Diffstat (limited to 'tests/variable/override/test.sh')
-rwxr-xr-x | tests/variable/override/test.sh | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/tests/variable/override/test.sh b/tests/variable/override/test.sh index a195766..63a792f 100755 --- a/tests/variable/override/test.sh +++ b/tests/variable/override/test.sh @@ -39,7 +39,7 @@ fail "%foo=bar" "%foo=BAR" # error: multiple project overrides of variable foo test --buildfile simple foo=bar ./ ./ <<< "bar" # Multiple bootstraps of the same project. -# Visibility. +# Visibility/qualification. # test !v=X <<EOF / : X @@ -61,7 +61,37 @@ p/d : X p/d/t : X EOF -test v=X p_a=assing <<EOF +test ./:v=X <<EOF +/ : +. : X +d : X +d/t : X +p : X +p/d : X +p/d/t : X +EOF + +test ./p/:v=X <<EOF +/ : +. : +d : +d/t : +p : X +p/d : X +p/d/t : X +EOF + +test /v=X <<EOF +/ : +. : X +d : X +d/t : X +p : X +p/d : X +p/d/t : X +EOF + +test v=X p_a=as <<EOF / : . : X d : X @@ -91,6 +121,16 @@ p/d : x p/d/t : x EOF +test /v=X d_a=as p_d_a=as <<EOF +/ : +. : X +d : x +d/t : x +p : X +p/d : x +p/d/t : x +EOF + test %v+=S %v=+P a=as <<EOF / : . : P x S |