@@ -15,7 +15,7 @@ def test_get_library_includes(self):
1515 recipe_build_dir = self .recipe .get_build_dir (self .arch .arch )
1616 self .assertEqual (
1717 self .recipe .get_library_includes (self .arch ),
18- f" -I{ join (recipe_build_dir , 'install /include' )} " ,
18+ f" -I{ join (recipe_build_dir , 'p4a_install /include' )} " ,
1919 )
2020
2121 def test_get_library_ldflags (self ):
@@ -25,11 +25,27 @@ def test_get_library_ldflags(self):
2525 recipe_build_dir = self .recipe .get_build_dir (self .arch .arch )
2626 self .assertEqual (
2727 self .recipe .get_library_ldflags (self .arch ),
28- f" -L{ join (recipe_build_dir , 'install /lib' )} " ,
28+ f" -L{ join (recipe_build_dir , 'p4a_install /lib' )} " ,
2929 )
3030
3131 def test_link_libs_flags (self ):
3232 """
3333 Test :meth:`~pythonforandroid.recipes.liblzma.get_library_libs_flag`.
3434 """
3535 self .assertEqual (self .recipe .get_library_libs_flag (), " -llzma" )
36+
37+ def test_install_dir_not_named_install (self ):
38+ """
39+ Tests that the install directory is not named ``install``.
40+
41+ liblzma already have a file named ``INSTALL`` in its source directory.
42+ On case-insensitive filesystems, using a folder named ``install`` will
43+ cause a conflict. (See issue: #2343).
44+
45+ WARNING: This test is quite flaky, but should be enough to
46+ ensure that someone in the future will not accidentally rename
47+ the install directory without seeing this test to fail.
48+ """
49+ liblzma_install_dir = self .recipe .built_libraries ["liblzma.so" ]
50+
51+ self .assertNotIn ("install" , liblzma_install_dir .split ("/" ))
0 commit comments