diff options
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 |