platform_build_soong/bp2build
Paul Duffin 4c0765a669 Support running bp2build tests in fixtures
Previously, the fixture test infrastructure was hard coded to
initialize itself in preparation for invoking the PrepareBuildActions()
method. That meant it could not be used for testing the bp2build and
apiBp2build modes which required different initialization and called a
different method.

This change extracts that behavior into a FixtureTestRunner and adds an
implementation that allows it to test the above two modes. It then uses
that to implement the runBp2BuildTestCaseWithSetup method.

The TestPrebuiltLibraryAdditionalAttrs was the only test which broke as
it supplied an invalid path to the MockFS (it does not support using a
trailing / to represent an empty build directory). So, it was modified
to add a couple of files inside those directories instead.

Test: m nothing
Change-Id: I6798a4f761160af8d1bfed81d46de9628bda3eb9
2022-12-02 11:14:17 +00:00
..
aar_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
Android.bp Implement bp2build for the package module 2022-09-14 13:49:27 -07:00
android_app_certificate_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
android_app_conversion_test.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
androidbp_to_build_templates.go Handle nameless modules during bp2build conversion. 2022-09-14 09:32:17 -07:00
apex_conversion_test.go Convert apex_available (for supported modules) to bazel tags. 2022-12-01 06:25:25 +00:00
apex_key_conversion_test.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
api_domain_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
bp2build.go include symlink metrics in bp2build_metrics.pb 2022-10-31 11:38:10 -04:00
bpf_conversion_test.go Add bp2build converter for bpf 2022-09-28 14:18:45 -07:00
build_conversion.go Make CodegenContext reference *android.Context 2022-11-05 17:43:12 +00:00
build_conversion_test.go Make CodegenContext reference *android.Context 2022-11-05 17:43:12 +00:00
bzl_conversion.go Bp2build: handle embedded structs as blueprint 2021-09-14 14:41:36 -04:00
bzl_conversion_test.go Create a new mode in soong_ui to generate API only BUILD files 2022-10-04 17:32:56 +00:00
cc_binary_conversion_test.go Revert "bp2build conversion for Sanitize.Integer_overflow" 2022-11-28 22:44:35 +00:00
cc_library_conversion_test.go Convert apex_available (for supported modules) to bazel tags. 2022-12-01 06:25:25 +00:00
cc_library_headers_conversion_test.go Converters for contributions to systemapi and vendorapi 2022-10-07 23:48:00 +00:00
cc_library_shared_conversion_test.go Support abi check in bazel. 2022-11-29 11:25:10 -08:00
cc_library_static_conversion_test.go Revert "bp2build conversion for Sanitize.Integer_overflow" 2022-11-28 22:44:35 +00:00
cc_object_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
cc_prebuilt_binary_conversion_test.go Support cc_prebuilt_binary building with Bazel 2022-10-06 19:39:09 +00:00
cc_prebuilt_library_conversion_test.go Support running bp2build tests in fixtures 2022-12-02 11:14:17 +00:00
cc_prebuilt_library_shared_test.go Rename prebuilt_library_* to cc_prebuilt_library_* 2022-10-20 14:51:55 +00:00
cc_prebuilt_library_static_test.go Rename prebuilt_library_* to cc_prebuilt_library_* 2022-10-20 14:51:55 +00:00
cc_test_conversion_test.go bp2build: Convert cc_test.test_options.tags to cc_test.tags 2022-09-16 02:32:03 +00:00
cc_yasm_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
configurability.go Add StringAttribute for bp2building 2022-08-15 22:59:56 +00:00
constants.go Have bp2build generate BUILD.bazel instead of generating BUILD. 2021-05-18 09:01:36 -04:00
conversion.go export neverallow include dir list to Bazel 2022-11-15 17:33:21 -05:00
conversion_test.go export neverallow include dir list to Bazel 2022-11-15 17:33:21 -05:00
filegroup_conversion_test.go Fix a bug where deps were missing for converted proto_library 2022-09-15 22:18:48 -07:00
genrule_conversion_test.go Make cc_genrule.srcs configurable. 2022-10-19 12:35:26 -07:00
gensrcs_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
java_binary_host_conversion_test.go Multithread symlink forest removal. 2022-10-31 16:04:13 +00:00
java_import_conversion_test.go Bp2build Java libs for java_binary -> java_import edge 2022-10-28 20:26:38 +00:00
java_library_conversion_test.go Bp2Build for libs property in java_library 2022-11-29 19:44:50 +00:00
java_library_host_conversion_test.go Bp2Build for libs property in java_library 2022-11-29 19:44:50 +00:00
java_plugin_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
java_proto_conversion_test.go Bp2Build for libs property in java_library 2022-11-29 19:44:50 +00:00
license_conversion_test.go Implement bp2build for the license module 2022-09-14 13:49:18 -07:00
license_kind_conversion_test.go Implement bp2build for the license_kind module 2022-09-14 13:49:27 -07:00
linker_config_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
metrics.go include symlink metrics in bp2build_metrics.pb 2022-10-31 11:38:10 -04:00
ndk_headers_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
ndk_library_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
package_conversion_test.go Implement bp2build for the package module 2022-09-14 13:49:27 -07:00
performance_test.go Make CodegenContext reference *android.Context 2022-11-05 17:43:12 +00:00
prebuilt_etc_conversion_test.go product_variables srcs in prebuilt_etc 2022-09-09 20:52:09 +00:00
python_binary_conversion_test.go Fix some issues in bp2build converter for python_binary_host. 2022-10-12 17:43:20 -07:00
python_library_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
sh_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
soong_config_module_type_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
symlink_forest.go Multithread symlink forest removal. 2022-10-31 16:04:13 +00:00
testing.go Support running bp2build tests in fixtures 2022-12-02 11:14:17 +00:00