Remove VSDK related code from build
Remove leftover VSDK related code from build, as they are no longer in use. Bug: 332986564 Test: AOSP CF build succeeded Change-Id: I7dcec66ddf6ee9a563ac09a3fa8a282c9e00258a
This commit is contained in:
@@ -107,17 +107,6 @@ var prepareForHostModTest = android.GroupFixturePreparers(
|
||||
var prepareForFakeHostTest = android.GroupFixturePreparers(
|
||||
prepareForHostTest,
|
||||
android.FixtureWithRootAndroidBp(hostTestBp),
|
||||
android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) {
|
||||
registerHostSnapshotComponents(ctx)
|
||||
}),
|
||||
)
|
||||
|
||||
// Prepare for fake host snapshot test enabled
|
||||
var prepareForFakeHostTestEnabled = android.GroupFixturePreparers(
|
||||
prepareForFakeHostTest,
|
||||
android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) {
|
||||
variables.HostFakeSnapshotEnabled = true
|
||||
}),
|
||||
)
|
||||
|
||||
// Validate that a hostSnapshot object is created containing zip files and JSON file
|
||||
@@ -140,31 +129,3 @@ func TestHostSnapshot(t *testing.T) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Validate fake host snapshot contains binary modules as well as the JSON meta file
|
||||
func TestFakeHostSnapshotEnable(t *testing.T) {
|
||||
result := prepareForFakeHostTestEnabled.RunTest(t)
|
||||
t.Helper()
|
||||
bins := []string{"foo", "bar"}
|
||||
ctx := result.TestContext.SingletonForTests("host-fake-snapshot")
|
||||
if ctx.MaybeOutput(filepath.Join("host-fake-snapshot", "host_snapshot.json")).Rule == nil {
|
||||
t.Error("Manifest file not found")
|
||||
}
|
||||
for _, bin := range bins {
|
||||
if ctx.MaybeOutput(filepath.Join("host-fake-snapshot", hostTestBinOut(bin))).Rule == nil {
|
||||
t.Error("Binary file ", bin, "not found")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Validate not fake host snapshot if HostFakeSnapshotEnabled has not been set to true
|
||||
func TestFakeHostSnapshotDisable(t *testing.T) {
|
||||
result := prepareForFakeHostTest.RunTest(t)
|
||||
t.Helper()
|
||||
ctx := result.TestContext.SingletonForTests("host-fake-snapshot")
|
||||
if len(ctx.AllOutputs()) != 0 {
|
||||
t.Error("Fake host snapshot not empty when disabled")
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user