When '-s' option is used but the system_dir does not have a
product.img, removed existing product.img from the device image.
Bug: 120578242
Test: build_mixed -s system_dir device_dir out_dir checkvintf
Change-Id: Ib669763847f3661596a74a6833b2030685d58ad5
* changes:
vndk-def: Refine test_command_deps_insight
vndk-def: Fix trivial pylint errors
vndk-def: Unhide a test case
vndk-def: Fix deprecated warning in unittest
vndk-def: Cleanup import pylint errors
vndk-def: Fix spacing errors found by pylint
vndk-def: Separate methods with two empty lines
vndk-def: Cleanup dep-graph
vndk-def: Mark --output as a required argument
This commit unhide a test case in `test_dex_file.py`. The test case was
hidden because the same method name was redefined.
Test: ./tests/run.sh # 124 test cases
Change-Id: Icf205d03e1b8db4a896aeb01615fa4993e73b4ce
This commit adds a TestCase compatibility layer to support `assertRegex`
and `assertNotRegex` in both Python 2.7 and 3.5. This removes a
deprecated warning while running test cases with Python 3.5.
Test: ./tests/run.sh
Change-Id: I9856b08f18ae92d110f37f75d444f09692f08acf
This commit fixes several spacing errors (e.g. indention,
and space-after-comma) that are found by pylint.
Test: ./tests/run.py
Change-Id: I830a9cddc91e21421b16c2a1d1a101c0beb7af62
This commit adds several empty lines to the file so that all method
definitions in `vndk_definition_tool.py` are separated by two empty
lines.
Test: n/a
Change-Id: I5976dec4ba73a80a29693bfa92fcaf5ecceace9d
This command marks `--output` as a required argument for various
subcommands.
Test: ./vndk_definition_tool.py deps-insight # see better error message
Change-Id: Ie60e186287beea7e701ab740fcf8c2959bfaec36
This commit fixes several pylint errors, such as indention, chainned
comparison, unused variables, unnecessary semicolon, 80-column, etc.
Test: ./tests/run.py
Change-Id: Ia1b282bd3c174af5bfdc28172becff9d10ff0d31
This commit adds a workaround for `_platform` suffix when the module is
used by some apex modules.
Bug: 121986692
Test: create_reference_dumps.py
Change-Id: Ia9c95b10caca024ef3e0defbad894e8cf16a92b1
This commit refines the logic to pick the lsdump files for reference ABI
dumps. Before this commit, `findlsdump()` simply use `str_a in str_b`
to check whether module variant name (e.g.
`android_arm_armv7-a-neon_core_shared`) is in the path. However, this
check also matches the variant for apex modules (e.g.
`android_arm_armv7-a-neon_core_shared_apex.name`).
This commit fixes the problem by splitting each path into path
components and check whether a path component matches with the module
variant name.
Bug: 121986692
Test: development/vndk/tools/header-checker/utils/create_reference_dumps.py
Change-Id: I98f78f460ddeb076f4ca35b7a0d9dcac4a479ae8
This commit removes the `remove_absolute_paths` argument from
`run_header_abi_dumper` because all usages pass `True`.
Test: ./tests/test.py
Test: ./tests/gen_all.py
Change-Id: Ibf5e7ff72d0c2c76ed3db1d8d272de1d3886c2c4
create_reference_dumps.py supports --build-variant which defaults to
userdebug. When the script builds libraries, it sets
TARGET_BUILD_VARIANT instead of inheriting from current environment.
Bug: 121017205
Test: ./create_reference_dumps.py --build-variant eng --llndk -libs libbinder_ndk
Change-Id: Ibe5458c2bb62ebb44755e4bb90566d39a0bd52f2
This commit makes get_build_vars_for_product get variables by
soong_ui.bash without envsetup.sh.
Bug: 120819347
Test: ./create_reference_dumps.py --llndk -libs libbinder_ndk
Change-Id: I66d1245d277d3c5459c6027ccdb88288aaf4d802
- Rename the unit test class to HeaderCheckerTest.
- Create/delete temporary directory in setUp/tearDown.
- Move make_and_copy_reference_dumps from gen_all.py to test.py.
- Remove duplicate constant paths.
- Add default arguments to LsdumpModule.
- Fix coding style.
Bug: 117582158
Test: ./gen_all.py
Test: ./test.py
Change-Id: I6345a10da5431e8057e4a9321ecce4168b7d5292
The difference between libgolden_cpp.so.lsdump and
libgolden_cpp_fabricated_function_ast_removed.so.lsdump is that the
latter one doesn't have the declaration of "SuperSpeaker::SpeakLouder",
but both of the lsdumps have the ELF symbol.
The source code of libgolden_cpp_fabricated_function_ast_removed is
missing. This commit replaces the test data with
libgolden_cpp_add_function and libgolden_cpp_add_function_sybmol_only.
Test: ./test.py
Bug: 117582158
Change-Id: Ieed8182731372f9ec7b3bdd209af23b0081cb778