HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/distutils/tests/__pycache__/test_unixccompiler.cpython-311.opt-2.pyc
�

��Vc����	ddlZddlZddlmZddlmZddlmZddlm	Z	Gd�dej
��Zd�Ze
d	kree����dSdS)
�N)�run_unittest)�EnvironmentVarGuard)�	sysconfig)�
UnixCCompilerc���eZdZd�Zd�Zejejdkd��d���Z	ej
ejdkd��d���Zej
ejdkd��d	���Zd
S)�UnixCCompilerTestCasec���tj|_tj|_t
tj��|_Gd�dt��}|��|_
dS)Nc��eZdZd�ZdS)�4UnixCCompilerTestCase.setUp.<locals>.CompilerWrapperc�,�|�d��S)Nz/foo)�runtime_library_dir_option��selfs �6D:\Python311\Lib\distutils\tests\test_unixccompiler.py�	rpath_fooz>UnixCCompilerTestCase.setUp.<locals>.CompilerWrapper.rpath_foos���6�6�v�>�>�>�N)�__name__�
__module__�__qualname__r�rr�CompilerWrapperrs#������
?�
?�
?�
?�
?rr)�sys�platform�_backup_platformr�get_config_var�_backup_get_config_var�dict�_config_vars�_backup_config_varsr�cc)rrs  r�setUpzUnixCCompilerTestCase.setUpsi�� #����&/�&>��#�#'�	�(>�#?�#?�� �	?�	?�	?�	?�	?�m�	?�	?�	?�"�/�#�#����rc���|jt_|jt_tj���tj�|j	��dS�N)
rrrrrrr�clear�updaterrs r�tearDownzUnixCCompilerTestCase.tearDownsL���,���#'�#>�	� ���$�$�&�&�&���%�%�d�&>�?�?�?�?�?r�win32zcan't test on Windowsc��dt_|�|j���d��dt_t
j}d�}|t
_|�|j���ddg��d�}|t
_|�|j���ddg��d�}|t
_|�|j���ddg��|t
_d	t_d
�}|t
_|�|j���d��d	t_d�}|t
_|�|j���d
��d	t_d�}|t
_|�|j���d��d	t_d�}|t
_|�|j���d��d	t_d�}|t
_|�|j���d��dS)N�darwinz-L/foozhp-uxc��dS)N�xxxr��vs r�gcvz=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv)����5rz+sc��dS)N�gccrr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv.r/rz-Wl,+sc��dS)Nzg++rr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv3r/r�barc�&�|dkrdS|dkrdSdS)N�CCr1�GNULD�yesrr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv<s.���D�y�
��u��g��
��u�
�
rz-Wl,--enable-new-dtags,-R/fooc�&�|dkrdS|dkrdSdS)Nr5r1r6�norr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvFs.���D�y�
��u��g��
��t�
�
rz
-Wl,-R/fooc�&�|dkrdS|dkrdSdS)Nr5zx86_64-pc-linux-gnu-gcc-4.4.2r6r7rr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvQs/���D�y�
�6�6��g��
��u�
�
rc�&�|dkrdS|dkrdSdS)Nr5r r6r7rr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv[s.���D�y�
��t��g��
��u�
�
rz-R/fooc�&�|dkrdS|dkrdSdS)Nr5r r6r9rr,s rr.z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcves.���D�y�
��t��g��
��t�
�
r)rr�assertEqualr rrr)r�old_gcvr.s   r�test_runtime_libdir_optionz0UnixCCompilerTestCase.test_runtime_libdir_optionsn�� ��������*�*�,�,�h�7�7�7�����*��	�	�	�#&�	� ������*�*�,�,�t�X�.>�?�?�?�	�	�	�#&�	� ������*�*�,�,�x��.B�C�C�C�	�	�	�#&�	� ������*�*�,�,�x��.B�C�C�C�#*�	� ����	�	�	�
$'�	� ������*�*�,�,�.M�N�N�N����	�	�	�
$'�	� ������*�*�,�,�l�;�;�;����	�	�	�
$'�	� ������*�*�,�,�.M�N�N�N����	�	�	�
$'�	� ������*�*�,�,�h�7�7�7����	�	�	�
$'�	� ������*�*�,�,�h�7�7�7�7�7rr)ztest only relevant for OS Xc��d�}|t_t��5}d|d<|d=tj|j��ddd��n#1swxYwY|�|jjdd��dS)Nc��|dkrdSdS�N�LDSHAREDz*gcc-4.2 -bundle -undefined dynamic_lookup zgcc-4.2rr,s rr.zAUnixCCompilerTestCase.test_osx_cc_overrides_ldshared.<locals>.gcvq����J��
D�C�C��9r�my_ccr5rCr�rrr�customize_compilerr r=�	linker_so�rr.�envs   r�test_osx_cc_overrides_ldsharedz4UnixCCompilerTestCase.test_osx_cc_overrides_ldsharedms���	�	�	�$'�	� �
 �
"�
"�	2�c��C��I��J���(���1�1�1�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2����	2�	2�	2�	2�	
�����*�1�-�w�7�7�7�7�7s�"A�A�Ac��d�}|t_t��5}d|d<d|d<tj|j��ddd��n#1swxYwY|�|jjdd��dS)Nc��|dkrdSdSrBrr,s rr.z=UnixCCompilerTestCase.test_osx_explicit_ldshared.<locals>.gcv�rDrrEr5zmy_ld -bundle -dynamicrCr�my_ldrFrIs   r�test_osx_explicit_ldsharedz0UnixCCompilerTestCase.test_osx_explicit_ldshared|s���
	�	�	�$'�	� �
 �
"�
"�	2�c��C��I�6�C�
�O��(���1�1�1�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2�	2����	2�	2�	2�	2�	
�����*�1�-�w�7�7�7�7�7s�$A�A�AN)
rrrr!r&�unittest�skipIfrrr?�
skipUnlessrKrOrrrrr
s�������$�$�$�@�@�@��X�_�S�\�W�,�.E�F�F�O8�O8�G�F�O8�b�X�����1�3P�Q�Q�8�8�R�Q�8��X�����1�3P�Q�Q�
8�
8�R�Q�
8�
8�
8rrc�X�tj���t��Sr#)rP�
TestLoader�loadTestsFromTestCaserrrr�
test_suiterV�s ���� � �6�6�7L�M�M�Mr�__main__)rrP�test.supportr�test.support.os_helperr�	distutilsr�distutils.unixccompilerr�TestCaserrVrrrr�<module>r]s���(�
�
�
�
�����%�%�%�%�%�%�6�6�6�6�6�6�������1�1�1�1�1�1�@8�@8�@8�@8�@8�H�-�@8�@8�@8�FN�N�N��z����L�����������r