platform_build_soong/tests
Kousik Kumar ca390b2f00 Update symlinks in output directory when TOP dir changes
When TOP dir changes and we reuse the same output between the old and new checkouts, we need to rewrite all the symlinks used by Bazel and other tools in the out-directory to point to the new top directory. Otherwise, if the old source dir is deleted, the build will fail.

I used the OUT_DIR/soong/soong.environment.available file to find out the previous PWD.

Tested:
1. Create source dir 1, run build, create source dir 2, remote source dir 1, reuse out dir and rerun build => build succeeded with this change.
2. m libc after moving build TOP. Only the analysis phase was rerun, the actual build was not rerun.

Bug: b/300498226

Change-Id: I196625baa1f4efe7a4734accfa1f0be7c98a7920
2023-10-04 21:07:36 +00:00
..
androidmk_test.sh cosmetic: auto-scan test_ functions 2023-01-06 14:26:56 +00:00
apex_cc_module_arch_variant_tests.sh Add testing android products 2023-03-28 11:27:30 -07:00
apex_comparison_tests.sh Update apex_comparison_test.sh to support CFI 2023-06-05 18:07:42 +00:00
bootstrap_test.sh Revert "Revert "Restrict plugins to an existing allowlist"" 2023-05-18 18:20:28 +00:00
bp2build_bazel_test.sh Merge "Revert "Change symlink_forest to use relative symlinks."" into main 2023-09-12 18:53:47 +00:00
dcla_apex_comparison_test.sh Add the DCLA libs used by swcodec to the staging list 2023-06-05 16:47:34 -07:00
genrule_sandbox_test.py Cleanup genrule_sandbox_test.py 2023-07-12 18:01:32 -07:00
lib.sh Update symlinks in output directory when TOP dir changes 2023-10-04 21:07:36 +00:00
mixed_mode_test.sh Refactor MixedBuildsEnabled and add --ensure-allowlist-integrity. 2023-04-25 20:55:07 +00:00
persistent_bazel_test.sh Load starlark files from soong 2023-04-26 17:18:19 -07:00
run_integration_tests.sh Update symlinks in output directory when TOP dir changes 2023-10-04 21:07:36 +00:00
sbom_test.sh Change sbom_test.sh to take command line arguments for target product, release and build variant, which is for a corresponding change in CI. 2023-09-29 16:52:11 -07:00
soong_test.sh simplify m clean 2023-05-23 17:34:15 -04:00
stale_metrics_files_test.sh Add integration test for ensuring that stale metrics files are deleted. 2023-06-14 15:05:36 +00:00
symlinks_path_test.sh Update symlinks in output directory when TOP dir changes 2023-10-04 21:07:36 +00:00