@@ -15,7 +15,7 @@ def test_get_library_includes(self):
15
15
recipe_build_dir = self .recipe .get_build_dir (self .arch .arch )
16
16
self .assertEqual (
17
17
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' )} " ,
19
19
)
20
20
21
21
def test_get_library_ldflags (self ):
@@ -25,11 +25,27 @@ def test_get_library_ldflags(self):
25
25
recipe_build_dir = self .recipe .get_build_dir (self .arch .arch )
26
26
self .assertEqual (
27
27
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' )} " ,
29
29
)
30
30
31
31
def test_link_libs_flags (self ):
32
32
"""
33
33
Test :meth:`~pythonforandroid.recipes.liblzma.get_library_libs_flag`.
34
34
"""
35
35
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