Lines Matching refs:ensureContains
236 func ensureContains(t *testing.T, result string, expected string) { func
525 ensureContains(t, androidMk, "LOCAL_MODULE := mylib.myapex\n")
529 ensureContains(t, optFlags, "--pubkey vendor/foo/devkeys/testkey.avbpubkey")
531 …ensureContains(t, optFlags, "--assets_dir out/soong/.intermediates/myapex/android_common_myapex_im…
536 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
554 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
555 ensureContains(t, copyCmds, "image.apex/lib64/mylib2.so")
556 ensureContains(t, copyCmds, "image.apex/javalib/myjar_stem.jar")
557 ensureContains(t, copyCmds, "image.apex/javalib/myjar_dex.jar")
558 ensureContains(t, copyCmds, "image.apex/lib64/libfoo.dylib.rust.dylib.so")
559 ensureContains(t, copyCmds, "image.apex/lib64/libfoo.ffi.so")
560 ensureContains(t, copyCmds, "image.apex/lib64/libbar.ffi.so")
561 ensureContains(t, copyCmds, "image.apex/lib64/libfoo.shared_from_rust.so")
750 ensureContains(t, zipApexRule.Output.String(), "myapex.zipapex.unsigned")
759 ensureContains(t, copyCmds, "image.zipapex/lib64/mylib.so")
760 ensureContains(t, copyCmds, "image.zipapex/lib64/mylib2.so")
823 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
829 ensureContains(t, copyCmds, "image.apex/lib64/mylib3.so")
834 ensureContains(t, mylibLdFlags, "mylib2/android_arm64_armv8-a_shared_current/mylib2.so")
839 ensureContains(t, mylibLdFlags, "mylib3/android_arm64_armv8-a_shared_apex10000/mylib3.so")
848 …ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_3").Rule("g…
922 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
928 ensureContains(t, copyCmds, "image.apex/lib64/mylib3.so")
933 ensureContains(t, mylibLdFlags, "mylib2/android_arm64_armv8-a_shared_current/mylib2.so")
938 ensureContains(t, mylibLdFlags, "mylib3/android_arm64_armv8-a_shared_apex29/mylib3.so")
947 …ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_29").Rule("…
1021 ensureContains(t, mylibCflags, "-D__LIBSTUB_API__=10000 ")
1023 ensureContains(t, mylibLdflags, "libstub/android_arm64_armv8-a_shared_current/libstub.so ")
1027 ensureContains(t, libplatformCflags, "-D__LIBSTUB_API__=10000 ") // "current" maps to 10000
1029 ensureContains(t, libplatformLdflags, "libstub/android_arm64_armv8-a_shared_current/libstub.so ")
1089 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
1100 ensureContains(t, mylibLdFlags, "libfoo/android_arm64_armv8-a_shared_10/libfoo.so")
1172 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
1178 ensureContains(t, copyCmds, "image.apex/lib64/libbar.so")
1245 …ensureContains(t, installed.Output.String(), "/system/lib64/bootstrap/libclang_rt.hwasan-aarch64-a…
1249 ensureContains(t, symlink.Output.String(), "/system/lib64/libclang_rt.hwasan-aarch64-android.so")
1293 …ensureContains(t, installed.Output.String(), "/system/lib64/bootstrap/libclang_rt.hwasan-aarch64-a…
1297 ensureContains(t, symlink.Output.String(), "/system/lib64/libclang_rt.hwasan-aarch64-android.so")
1376 … ensureContains(t, mylibLdFlags, "libbar/android_arm64_armv8-a_shared_"+tc.shouldLink+"/libbar.so")
1386 ensureContains(t, mylibCFlags, "__LIBBAR_API__="+ver)
1435 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
1436 ensureContains(t, copyCmds, "image.apex/lib64/bionic/libm.so")
1437 ensureContains(t, copyCmds, "image.apex/lib64/bionic/libdl.so")
1448 ensureContains(t, mylibLdFlags, "libc/android_arm64_armv8-a_shared_current/libc.so")
1452 ensureContains(t, mylibCFlags, "__LIBC_API__=10000")
1453 ensureContains(t, mylibSharedCFlags, "__LIBC_API__=10000")
1457 ensureContains(t, mylibLdFlags, "libm/android_arm64_armv8-a_shared_apex10000/libm.so")
1466 ensureContains(t, mylibLdFlags, "libdl/android_arm64_armv8-a_shared_27/libdl.so")
1473 ensureContains(t, mylibCFlags, "__LIBDL_API__=27")
1474 ensureContains(t, mylibSharedCFlags, "__LIBDL_API__=27")
1478 ensureContains(t, libFlags, "libc/android_arm64_armv8-a_shared/libc.so")
1479 ensureContains(t, libFlags, "libm/android_arm64_armv8-a_shared/libm.so")
1480 ensureContains(t, libFlags, "libdl/android_arm64_armv8-a_shared/libdl.so")
1551 ensureContains(t, ldArgs, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
1611 ensureContains(t, ldArgs, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
1658 ensureContains(t, ldArgs, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
1706 ensureContains(t, ldArgs, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
1759 ensureContains(t, libFlags, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
2175 ensureContains(t, libFlags, "android_arm64_armv8-a_"+to_variant+"/"+to+".so")
2248 ensureContains(t, libFlags, "android_arm64_armv8-a_shared_current/libbar.so")
2413 ensureContains(t, androidMk, "LOCAL_MODULE_PATH := "+installPath)
2576 ensureContains(t, androidMk, "LOCAL_REQUIRED_MODULES += libc.vendor libm.vendor libdl.vendor\n")
2605 ensureContains(t, androidMk, "LOCAL_FULL_VINTF_FRAGMENTS := fragment.xml\n")
2606 ensureContains(t, androidMk, "LOCAL_FULL_INIT_RC := init.rc\n")
2651 ensureContains(t, ldFlags, "mylib/android_arm64_armv8-a_static/mylib.a")
2914 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
2915 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX_MIN_SDK_VERSION__=10000")
2920 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
2921 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX_MIN_SDK_VERSION__=29")
2933 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
2934 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX_MYAPEX__")
2939 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
2941 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX_OTHERAPEX__")
2957 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
2963 ensureContains(t, mylibCFlags, "-D__ANDROID_APEX__")
3021 ensureContains(t, cFlags, "-Imy_include")
3675 ensureContains(t, apexManifestRule.Args["opt"], "-v name com.android.myapex")
3677 ensureContains(t, apexRule.Args["opt_flags"], "--do_not_check_keyname")
3686 ensureContains(t, androidMk, "LOCAL_MODULE := mylib.myapex\n")
3726 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
3732 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common.so")
3780 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
3786 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common_test.so")
3865 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
3873 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
3874 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common.so")
3938 ensureContains(t, copyCmds, "image.apex/lib64/mylib.arm64.so")
3968 ensureContains(t, copyCmds, "image.apex/bin/script/myscript.sh")
4032 ensureContains(t, rule.RuleParams.Command, "cat system/sepolicy/apex/myapex-file_contexts")
4090 ensureContains(t, rule.RuleParams.Command, "cat product_specific_file_contexts")
4118 ensureContains(t, rule.RuleParams.Command, "cat product_specific_file_contexts")
4923 ensureContains(t, copyCmds, "image.apex/bin/test/mytest")
4924 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
4927 ensureContains(t, copyCmds, "image.apex/bin/test/baz")
4928 ensureContains(t, copyCmds, "image.apex/bin/test/bar/baz")
4931 ensureContains(t, copyCmds, "image.apex/bin/test/mytest1")
4932 ensureContains(t, copyCmds, "image.apex/bin/test/mytest2")
4933 ensureContains(t, copyCmds, "image.apex/bin/test/mytest3")
4943 ensureContains(t, androidMk, "LOCAL_MODULE := mytest.myapex\n")
4944 ensureContains(t, androidMk, "LOCAL_MODULE := mytest1.myapex\n")
4945 ensureContains(t, androidMk, "LOCAL_MODULE := mytest2.myapex\n")
4946 ensureContains(t, androidMk, "LOCAL_MODULE := mytest3.myapex\n")
4947 ensureContains(t, androidMk, "LOCAL_MODULE := apex_manifest.pb.myapex\n")
4948 ensureContains(t, androidMk, "LOCAL_MODULE := apex_pubkey.myapex\n")
4949 ensureContains(t, androidMk, "LOCAL_MODULE := myapex\n")
4982 ensureContains(t, androidMk, "LOCAL_REQUIRED_MODULES += myapex.flattened")
5057 ensureContains(t, copyCmds, "image.apex/javalib/myjavaimport.jar")
5121 ensureContains(t, copyCmds, "image.apex/app/AppFoo/AppFoo.apk")
5122 ensureContains(t, copyCmds, "image.apex/priv-app/AppFooPriv/AppFooPriv.apk")
5184 ensureContains(t, copyCmds, "image.apex/app/AppFooPrebuilt/AppFooPrebuilt.apk")
5185 ensureContains(t, copyCmds, "image.apex/priv-app/AppFooPrivPrebuilt/AwesomePrebuiltAppFooPriv.apk")
5259 ensureContains(t, copyCmds, "image.apex/app/TesterHelpAppFoo/TesterHelpAppFoo.apk")
5607 ensureContains(t, copyCmds, "image.apex/app/override_app/override_app.apk")
5620 ensureContains(t, optFlags, "--override_apk_package_name test.overridden.package")
5621 ensureContains(t, optFlags, "--pubkey testkey2.avbpubkey")
5630 ensureContains(t, androidMk, "LOCAL_MODULE := override_app.override_myapex")
5631 ensureContains(t, androidMk, "LOCAL_MODULE := apex_manifest.pb.override_myapex")
5632 ensureContains(t, androidMk, "LOCAL_MODULE_STEM := override_myapex.apex")
5633 ensureContains(t, androidMk, "LOCAL_OVERRIDES_MODULES := unknownapex myapex")
5667 …ensureContains(t, args["opt_flags"], "--manifest_json "+module.Output("apex_manifest.json").Output…
5735 …ensureContains(t, sdkLibrary.RuleParams.Command, `<library name=\"foo\" file=\"/apex/myapex/javali…
6065 ensureContains(t, androidMk, "LOCAL_REQUIRED_MODULES += a b\n")
6066 ensureContains(t, androidMk, "LOCAL_HOST_REQUIRED_MODULES += c d\n")
6067 ensureContains(t, androidMk, "LOCAL_TARGET_REQUIRED_MODULES += e f\n")
6245 ensureContains(t, androidMk, "LOCAL_MODULE := mylib.myapex\n")
6249 …ensureContains(t, androidMk, "LOCAL_REQUIRED_MODULES += mylib.myapex:64 myotherlib:64 apex_manifes…
6345 …ensureContains(t, content, `"compression":{"uncompressed_glob":["apex_payload.img","apex_manifest.…
6346 …ensureContains(t, content, `"apex_config":{"apex_embedded_apk_config":[{"package_name":"com.androi…
6371 …ensureContains(t, content, `"compression":{"uncompressed_glob":["apex_payload.img","apex_manifest.…
7234 …ensureContains(t, content, `name="myapex_set.apex" public_key="PRESIGNED" private_key="PRESIGNED" …
7235 …ensureContains(t, content, `name="myapex.apex" public_key="PRESIGNED" private_key="PRESIGNED" cont…
7350 ensureContains(t, compressRule.Output.String(), "myapex.capex.unsigned")
7357 ensureContains(t, ab.outputFile.String(), "myapex.capex")
7364 ensureContains(t, androidMk, "LOCAL_MODULE_STEM := myapex.capex\n")
7416 ensureContains(t, androidMk, "LOCAL_REQUIRED_MODULES += otherlib\n")
7458 ensureContains(t, ldFlags, "mylib2/android_arm64_armv8-a_shared/mylib2.so")