@@ -140,7 +140,7 @@ def test_contents_license_file(wheel_license_file):
140
140
assert artifact .read ('license_file-1.0.0.dist-info/LICENSE.custom' ).rstrip () == b'Hello!'
141
141
142
142
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' )
144
144
def test_contents (package_library , wheel_library ):
145
145
artifact = wheel .wheelfile .WheelFile (wheel_library )
146
146
@@ -154,19 +154,19 @@ def test_contents(package_library, wheel_library):
154
154
}
155
155
156
156
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' )
158
158
def test_local_lib (venv , wheel_link_against_local_lib ):
159
159
venv .pip ('install' , wheel_link_against_local_lib )
160
160
output = venv .python ('-c' , 'import example; print(example.example_sum(1, 2))' )
161
161
assert int (output ) == 3
162
162
163
163
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' )
165
165
def test_rpath (wheel_link_against_local_lib , tmp_path ):
166
166
artifact = wheel .wheelfile .WheelFile (wheel_link_against_local_lib )
167
167
artifact .extractall (tmp_path )
168
168
169
- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' }[sys .platform ]
169
+ origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
170
170
expected = {f'{ origin } /.link_against_local_lib.mesonpy.libs' , 'custom-rpath' ,}
171
171
172
172
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):
175
175
assert rpath >= expected
176
176
177
177
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' )
179
179
def test_uneeded_rpath (wheel_purelib_and_platlib , tmp_path ):
180
180
artifact = wheel .wheelfile .WheelFile (wheel_purelib_and_platlib )
181
181
artifact .extractall (tmp_path )
182
182
183
- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' }[sys .platform ]
183
+ origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
184
184
185
185
rpath = mesonpy ._rpath ._get_rpath (tmp_path / f'plat{ EXT_SUFFIX } ' )
186
186
for path in rpath :
187
187
assert origin not in path
188
188
189
189
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' )
191
191
def test_executable_bit (wheel_executable_bit ):
192
192
artifact = wheel .wheelfile .WheelFile (wheel_executable_bit )
193
193
0 commit comments