platform_build_soong/tests
Lukacs T. Berki a1b9372ef7 Make running soong_build in alternate modes nicer.
This includes the JSON graph generator and bp2build.

Before:
GENERATE_BAZEL_FILES=1 m nothing
GENERATE_JSON_MODULE_GRAPH=1 m nothing

Now:
m json-module-graph
m bp2build

They can now also be combined with other targets or each other.

The longer-term goal is to run "m queryview" and "m soong_docs" using
the same infrastructure. There are two alternate approaches:

1. Call soong_build from within the main Ninja invocation. This requires
two sequential soong_build invocations and is thus slower.
2. Do everything requested in the same soong_build invocation. This
would be faster, but one AFAIU can't tell Ninja that multiple possible
actions can build the same output so that doesn't work.

(1) is somewhat more desirable because soong_docs seems to be built
from build/make/core/main.mk ; I assume that that can be worked around
although I haven't checked where the output of "m soong_docs" goes.

Test: Presubmits.
Change-Id: If5ba36490d9f3f60733e6d6be9286eb2b67c3ff5
2021-09-06 16:03:51 +02:00
..
bootstrap_test.sh Make running soong_build in alternate modes nicer. 2021-09-06 16:03:51 +02:00
bp2build_bazel_test.sh Make running soong_build in alternate modes nicer. 2021-09-06 16:03:51 +02:00
lib.sh Make running soong_build in alternate modes nicer. 2021-09-06 16:03:51 +02:00
mixed_mode_test.sh Fix OUT_DIR lookup in mixed builds. 2021-06-01 12:07:40 +00:00
run_integration_tests.sh Ensure directories in the Soong output dir have appropriate permissions, so that 'm clean' works. 2021-08-12 05:07:11 -04:00
soong_test.sh Ensure directories in the Soong output dir have appropriate permissions, so that 'm clean' works. 2021-08-12 05:07:11 -04:00