diff options
author | 2020-02-27 13:12:46 +0000 | |
---|---|---|
committer | 2020-02-28 11:21:06 +0000 | |
commit | 08798aae0b51cae802b0ae636a11e9f04216ea0f (patch) | |
tree | 5fb9575a4a8ad79063aadbd10c96d1aaf5dd7c07 | |
parent | 0ffa3aba781526182294d27f3e7bf1b538325c03 (diff) |
Add windows to the list of available OS's in sdk tests
Makes the tests more realistic as they cover what happens when an sdk
OS specific variant is disabled (Windows is disabled by default). This
will allow issues around disabled variants to be detected early during
Soong bootstrapping.
Test: m nothing
Change-Id: I7ec47dbca52e38750166d755daf706aadea12d15
-rw-r--r-- | sdk/testing.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sdk/testing.go b/sdk/testing.go index ae0620d83..7352c7444 100644 --- a/sdk/testing.go +++ b/sdk/testing.go @@ -61,6 +61,12 @@ func testSdkContext(bp string, fs map[string][]byte) (*android.TestContext, andr config := android.TestArchConfig(buildDir, nil, bp, mockFS) + // Add windows as a default disable OS to test behavior when some OS variants + // are disabled. + config.Targets[android.Windows] = []android.Target{ + {android.Windows, android.Arch{ArchType: android.X86_64}, android.NativeBridgeDisabled, "", ""}, + } + ctx := android.NewTestArchContext() // from android package |