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

Commit f4d8b9c2 authored by Dario Freni's avatar Dario Freni
Browse files

Remove aapt2_results.

This rule was introduced in 2017 as a way to run unit tests in a continuous build target. We have better ways to achieve the same today.

Bug: 337281646
Bug: 332609042
Test: presubmit
Change-Id: Iba9934f39df2ebb883ded941d438b3528b3f29c2
parent 3539fa7d
Loading
Loading
Loading
Loading
+0 −53
Original line number Original line Diff line number Diff line
@@ -227,56 +227,3 @@ genrule {
        ],
        ],
    },
    },
}
}

cc_genrule {
    name: "aapt2_results",
    srcs: [
        ":aapt2_tests",
        "integration-tests/CompileTest/**/*",
        "integration-tests/CommandTests/**/*",
        "integration-tests/ConvertTest/**/*",
        "integration-tests/DumpTest/**/*",
    ],
    host_supported: true,
    device_supported: false,
    target: {
        windows: {
            compile_multilib: "64",
        },
    },
    out: ["result.xml"],
    cmd: "mkdir -p $(genDir)/integration-tests/CompileTest/ && " +
        "cp $(locations integration-tests/CompileTest/**/*) $(genDir)/integration-tests/CompileTest/ && " +
        "mkdir -p $(genDir)/integration-tests/CommandTests/ && " +
        "cp $(locations integration-tests/CommandTests/**/*) $(genDir)/integration-tests/CommandTests/ && " +
        "mkdir -p $(genDir)/integration-tests/ConvertTest/ && " +
        "cp $(locations integration-tests/ConvertTest/**/*) $(genDir)/integration-tests/ConvertTest/ && " +
        "mkdir -p $(genDir)/integration-tests/DumpTest/ && " +
        "cp $(locations integration-tests/DumpTest/**/*) $(genDir)/integration-tests/DumpTest/ && " +
        "cp $(locations :aapt2_tests) $(genDir)/ && " +
        "$(genDir)/aapt2_tests " +
        "--gtest_output=xml:$(out) " +
        ">/dev/null 2>&1 ; true",
    dist: {
        targets: ["aapt2_run_host_unit_tests"],
        dir: "gtest",
        dest: "aapt2_host_unit_tests_result.xml",
    },
    arch: {
        x86: {
            dist: {
                suffix: "_x86",
            },
        },
        x86_64: {
            dist: {
                suffix: "_x86_64",
            },
        },
    },
}

phony_rule {
    name: "aapt2_run_host_unit_tests",
    phony_deps: ["aapt2_results"],
}