@@ -140,7 +140,7 @@ def test_contents_license_file(wheel_license_file):
140140 assert artifact .read ('license_file-1.0.0.dist-info/LICENSE.custom' ).rstrip () == b'Hello!'
141141
142142
143- @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' }, reason = 'Not supported on this platform' )
143+ @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform' )
144144def test_contents (package_library , wheel_library ):
145145 artifact = wheel .wheelfile .WheelFile (wheel_library )
146146
@@ -154,19 +154,19 @@ def test_contents(package_library, wheel_library):
154154 }
155155
156156
157- @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' }, reason = 'Not supported on this platform' )
157+ @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform' )
158158def test_local_lib (venv , wheel_link_against_local_lib ):
159159 venv .pip ('install' , wheel_link_against_local_lib )
160160 output = venv .python ('-c' , 'import example; print(example.example_sum(1, 2))' )
161161 assert int (output ) == 3
162162
163163
164- @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' }, reason = 'Not supported on this platform' )
164+ @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform' )
165165def test_rpath (wheel_link_against_local_lib , tmp_path ):
166166 artifact = wheel .wheelfile .WheelFile (wheel_link_against_local_lib )
167167 artifact .extractall (tmp_path )
168168
169- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' }[sys .platform ]
169+ origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
170170 expected = {f'{ origin } /.link_against_local_lib.mesonpy.libs' , 'custom-rpath' ,}
171171
172172 rpath = set (mesonpy ._rpath ._get_rpath (tmp_path / f'example{ EXT_SUFFIX } ' ))
@@ -175,19 +175,19 @@ def test_rpath(wheel_link_against_local_lib, tmp_path):
175175 assert rpath >= expected
176176
177177
178- @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' }, reason = 'Not supported on this platform' )
178+ @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform' )
179179def test_uneeded_rpath (wheel_purelib_and_platlib , tmp_path ):
180180 artifact = wheel .wheelfile .WheelFile (wheel_purelib_and_platlib )
181181 artifact .extractall (tmp_path )
182182
183- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' }[sys .platform ]
183+ origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
184184
185185 rpath = mesonpy ._rpath ._get_rpath (tmp_path / f'plat{ EXT_SUFFIX } ' )
186186 for path in rpath :
187187 assert origin not in path
188188
189189
190- @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' }, reason = 'Not supported on this platform' )
190+ @pytest .mark .skipif (sys .platform not in {'linux' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform' )
191191def test_executable_bit (wheel_executable_bit ):
192192 artifact = wheel .wheelfile .WheelFile (wheel_executable_bit )
193193
0 commit comments