Add some more visibility test cases.
Bug: 112158820 Test: Soong self test Change-Id: Ia359c35c0c124bac2693926ce8f05dd20435f05d
This commit is contained in:
parent
288a1e2957
commit
8edeb6372e
1 changed files with 16 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
package android
|
||||
|
||||
import (
|
||||
"github.com/google/blueprint"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/google/blueprint"
|
||||
)
|
||||
|
||||
var visibilityTests = []struct {
|
||||
|
@ -198,10 +199,17 @@ var visibilityTests = []struct {
|
|||
name: "libnested",
|
||||
deps: ["libexample"],
|
||||
}`),
|
||||
"other/Blueprints": []byte(`
|
||||
mock_library {
|
||||
name: "libother",
|
||||
deps: ["libexample"],
|
||||
}`),
|
||||
},
|
||||
expectedErrors: []string{
|
||||
`module "libnested" variant "android_common": depends on //top:libexample which is not` +
|
||||
` visible to this module; //top:libexample is only visible to \[//top:__pkg__\]`,
|
||||
`module "libother" variant "android_common": depends on //top:libexample which is not` +
|
||||
` visible to this module; //top:libexample is only visible to \[//top:__pkg__\]`,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -223,10 +231,17 @@ var visibilityTests = []struct {
|
|||
name: "libnested",
|
||||
deps: ["libexample"],
|
||||
}`),
|
||||
"other/Blueprints": []byte(`
|
||||
mock_library {
|
||||
name: "libother",
|
||||
deps: ["libexample"],
|
||||
}`),
|
||||
},
|
||||
expectedErrors: []string{
|
||||
`module "libnested" variant "android_common": depends on //top:libexample which is not` +
|
||||
` visible to this module; //top:libexample is only visible to \[//top:__pkg__\]`,
|
||||
`module "libother" variant "android_common": depends on //top:libexample which is not` +
|
||||
` visible to this module; //top:libexample is only visible to \[//top:__pkg__\]`,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue