Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 830f56a7 authored by Cole Faust's avatar Cole Faust
Browse files

Remove testing package

The testing package defined test_spec and code_metadata module types,
but they were never used and the owner left google.

Bug: 372091092
Test: Presubmits
Change-Id: I2d34ce173ec46483719a1d333180937b3da1fa04
parent 44b35ecc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@ bootstrap_go_package {
        "soong-etc",
        "soong-fuzz",
        "soong-genrule",
        "soong-testing",
        "soong-tradefed",
    ],
    srcs: [
+0 −5
Original line number Diff line number Diff line
@@ -24,8 +24,6 @@ import (
	"strconv"
	"strings"

	"android/soong/testing"

	"github.com/google/blueprint"
	"github.com/google/blueprint/proptools"

@@ -2038,9 +2036,6 @@ func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {

		c.maybeUnhideFromMake()
	}
	if c.testModule {
		android.SetProvider(ctx, testing.TestModuleProviderKey, testing.TestModuleProviderData{})
	}

	android.SetProvider(ctx, blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: deps.GeneratedSources.Strings()})

+0 −3
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ bootstrap_go_package {
        "soong-dexpreopt",
        "soong-genrule",
        "soong-java-config",
        "soong-testing",
        "soong-provenance",
        "soong-python",
        "soong-remoteexec",
@@ -86,7 +85,6 @@ bootstrap_go_package {
        "app_import_test.go",
        "app_set_test.go",
        "app_test.go",
        "code_metadata_test.go",
        "container_test.go",
        "bootclasspath_fragment_test.go",
        "device_host_converter_test.go",
@@ -117,7 +115,6 @@ bootstrap_go_package {
        "sdk_version_test.go",
        "system_modules_test.go",
        "systemserver_classpath_fragment_test.go",
        "test_spec_test.go",
    ],
    pluginFor: ["soong_build"],
    visibility: ["//visibility:public"],
+0 −3
Original line number Diff line number Diff line
@@ -22,8 +22,6 @@ import (
	"path/filepath"
	"strings"

	"android/soong/testing"

	"github.com/google/blueprint"
	"github.com/google/blueprint/proptools"

@@ -1443,7 +1441,6 @@ func (a *AndroidTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
	a.data = append(a.data, android.PathsForModuleSrc(ctx, a.testProperties.Device_common_data)...)
	a.data = append(a.data, android.PathsForModuleSrc(ctx, a.testProperties.Device_first_data)...)
	a.data = append(a.data, android.PathsForModuleSrc(ctx, a.testProperties.Device_first_prefer32_data)...)
	android.SetProvider(ctx, testing.TestModuleProviderKey, testing.TestModuleProviderData{})
	android.SetProvider(ctx, tradefed.BaseTestProviderKey, tradefed.BaseTestProviderData{
		InstalledFiles:          a.data,
		OutputFile:              a.OutputFile(),
+0 −2
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import (

	"android/soong/android"
	"android/soong/dexpreopt"
	"android/soong/testing"

	"github.com/google/blueprint/proptools"

@@ -524,7 +523,6 @@ func (b *BootclasspathFragmentModule) GenerateAndroidBuildActions(ctx android.Mo
	if ctx.Module() != ctx.FinalModule() {
		b.HideFromMake()
	}
	android.SetProvider(ctx, testing.TestModuleProviderKey, testing.TestModuleProviderData{})
}

// getProfileProviderApex returns the name of the apex that provides a boot image profile, or an
Loading