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

Commit 10adf35c authored by Luca Farsi's avatar Luca Farsi
Browse files

Add build rule for build_test_suites

Add a build rule to build build_test_suites.

Test: m build_test_suites
Bug: 372973116
Change-Id: I790cc723a7e4deba2309b24cdcf6a058f8a77254
parent 974f1f31
Loading
Loading
Loading
Loading
+24 −4
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ python_test_host {
        "build_test_suites_test.py",
    ],
    libs: [
        "build_test_suites",
        "build_test_suites_lib",
        "pyfakefs",
        "ci_test_lib",
    ],
@@ -56,7 +56,7 @@ python_test_host {
        "build_test_suites_local_test.py",
    ],
    libs: [
        "build_test_suites",
        "build_test_suites_lib",
        "pyfakefs",
        "ci_test_lib",
    ],
@@ -79,7 +79,7 @@ python_test_host {
        "optimized_targets_test.py",
    ],
    libs: [
        "build_test_suites",
        "build_test_suites_lib",
        "pyfakefs",
    ],
    test_options: {
@@ -95,7 +95,7 @@ python_test_host {
    },
}

python_library_host {
python_binary_host {
    name: "build_test_suites",
    srcs: [
        "build_test_suites.py",
@@ -104,6 +104,26 @@ python_library_host {
        "build_context.py",
        "test_discovery_agent.py",
    ],
    main: "build_test_suites.py",
    version: {
        py3: {
            embedded_launcher: true,
        },
    },
    libs: [
        "soong-metrics-proto-py",
    ],
}

python_library_host {
    name: "build_test_suites_lib",
    srcs: [
        "build_test_suites.py",
        "optimized_targets.py",
        "test_mapping_module_retriever.py",
        "build_context.py",
        "test_discovery_agent.py",
    ],
}

python_library_host {
+4 −0
Original line number Diff line number Diff line
@@ -209,3 +209,7 @@ def main(argv):
        filename=log_file,
    )
  sys.exit(build_test_suites(argv))


if __name__ == '__main__':
  main(sys.argv[1:])