platform_build_soong/tests
Jingwen Chen 53dfa408b4 Generate build-globs.ninja when running bp2build.
This fixes null bp2build builds.

When running bp2build, out/soong/.bootstrap/build-globs.ninja wasn't
generated, therefore none of the globs in out/soong/.primary/globs have
actions to generate them. This makes bp2build always re-run on a null
build, because it depends on those non-existent globs in its depfile.

Fix the above by generating a build-globs.ninja file with the globs that
bp2build encounters during conversion, and add tests to verify that null
builds and bp2build -> soong workflows correctly regenerates the
build-globs.ninja file.

Test: soong integration tests for null soong->soong, bp2build->bp2build and bp2build->soong builds.
Fixes: 193650250
Change-Id: Icfbad351dfa85541d1ea451f73e65cac87097926
2021-08-12 10:14:02 +00:00
..
bootstrap_test.sh Add errorHints to stdout when read-only file system errors are detected 2021-06-29 00:20:21 +00:00
bp2build_bazel_test.sh Generate build-globs.ninja when running bp2build. 2021-08-12 10:14:02 +00:00
lib.sh Allow //external/bazel-skylib to use existing BUILD files 2021-08-11 12:19:17 +00:00
mixed_mode_test.sh Fix OUT_DIR lookup in mixed builds. 2021-06-01 12:07:40 +00:00
run_integration_tests.sh Generate BUILD files for every directory that has an Android.bp file. 2021-04-21 07:15:50 -04:00