Merge "Fix the unit test for header-abi-dumper -print-resource-dir"
This commit is contained in:
@@ -149,6 +149,9 @@ mkdir -p "${CLANG_LIB_DIR_OUT}"
|
||||
cp -R "${CLANG_LIB_DIR}/share" "${CLANG_LIB_DIR_OUT}/share"
|
||||
cp -R "${CLANG_LIB_DIR}/include" "${CLANG_LIB_DIR_OUT}/include"
|
||||
ln -s "lib64/clang/${LLVM_RELEASE_VERSION}/include" "${SOONG_DIST}/clang-headers"
|
||||
# create symlink lib -> lib64 as toolchain libraries have a RUNPATH pointing to
|
||||
# $ORIGIN/../lib instead of lib64
|
||||
ln -s "lib64" "${SOONG_DIST}/lib"
|
||||
|
||||
# Normalize library file names. All library file names must match their soname.
|
||||
function extract_soname () {
|
||||
|
||||
@@ -60,10 +60,6 @@ update_prebuilts () {
|
||||
rm .fetch* || true
|
||||
|
||||
find . | xargs touch
|
||||
|
||||
# create symlink lib -> lib64 as toolchain libraries have a RUNPATH pointing
|
||||
# to $ORIGIN/../lib instead of lib64
|
||||
ln -s lib64 lib
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -405,8 +405,9 @@ class HeaderCheckerTest(unittest.TestCase):
|
||||
resource_dir = subprocess.check_output(
|
||||
["header-abi-dumper", "-print-resource-dir"], text=True,
|
||||
stderr=subprocess.DEVNULL).strip()
|
||||
self.assertEqual(os.path.dirname(resource_dir),
|
||||
os.path.join(common_dir, "lib64", "clang"))
|
||||
self.assertIn(os.path.dirname(resource_dir),
|
||||
(os.path.join(common_dir, "lib64", "clang"),
|
||||
os.path.join(common_dir, "lib", "clang")))
|
||||
self.assertRegex(os.path.basename(resource_dir), r"^[\d.]+$")
|
||||
|
||||
def test_struct_extensions(self):
|
||||
|
||||
Reference in New Issue
Block a user