Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/distutils/tests/__pycache__/test_unixccompiler.cpython-311.opt-2.pyc

�

SԚgd���	ddlZddlZddlmZddlmZddlmZGd�dej��Z	e
dkrej��dSdS)�N)�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 �?/usr/local/lib/python3.11/distutils/tests/test_unixccompiler.py�	rpath_fooz>UnixCCompilerTestCase.setUp.<locals>.CompilerWrapper.rpath_foos���6�6�v�>�>�>�N)�__name__�
__module__�__qualname__r�rr�CompilerWrapperr
s#������
?�
?�
?�
?�
?rr)�sys�platform�_backup_platformr�get_config_var�_backup_get_config_var�dict�_config_vars�_backup_config_varsr�cc)rrs  r�setUpzUnixCCompilerTestCase.setUpsi�� #����&/�&>��#�#'�	�(>�#?�#?�� �	?�	?�	?�	?�	?�m�	?�	?�	?�"�/�#�#����rc���|jt_|jt_tj���tj�|j	��dS)N)
rrrrrrr�clear�updaterr
s 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>.gcv2r-r�barc�&�|dkrdS|dkrdSdS)N�CCr/�GNULD�yesrr*s rr,z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcv;s%���D�y�y��u��g����u��rz-Wl,--enable-new-dtags,-R/fooc�&�|dkrdS|dkrdSdS)Nr3r/r4�norr*s rr,z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvEs%���D�y�y��u��g����t��rz
-Wl,-R/fooc�&�|dkrdS|dkrdSdS)Nr3zx86_64-pc-linux-gnu-gcc-4.4.2r4r5rr*s rr,z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvPs&���D�y�y�6�6��g����u��rc�&�|dkrdS|dkrdSdS)Nr3rr4r5rr*s rr,z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvZs%���D�y�y��t��g����u��rz-R/fooc�&�|dkrdS|dkrdSdS)Nr3rr4r7rr*s rr,z=UnixCCompilerTestCase.test_runtime_libdir_option.<locals>.gcvds%���D�y�y��t��g����t��r)rr�assertEqualrrrr)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>.gcvp����J���C�C��9r�my_ccr3rAr�rrr�customize_compilerrr;�	linker_so�rr,�envs   r�test_osx_cc_overrides_ldsharedz4UnixCCompilerTestCase.test_osx_cc_overrides_ldsharedls���	�	�	�$'�	� �
 �
"�
"�	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��|dkrdSdSr@rr*s rr,z=UnixCCompilerTestCase.test_osx_explicit_ldshared.<locals>.gcv�rBrrCr3zmy_ld -bundle -dynamicrAr�my_ldrDrGs   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=�
skipUnlessrIrMrrrrr	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�
8rr�__main__)rrN�test.support.os_helperr�	distutilsr�distutils.unixccompilerr�TestCaserr�mainrrr�<module>rWs���(�
�
�
�
�����6�6�6�6�6�6�������1�1�1�1�1�1�@8�@8�@8�@8�@8�H�-�@8�@8�@8�F�z����H�M�O�O�O�O�O��r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists