o
    FXîhÖ  ã                   @   sx   d Z ddlZddlZddlmZ ddlmZ ddlmZ G dd„ dej	ej
ejejƒZdd	„ Zed
kr:eeƒ ƒ dS dS )z,Tests for distutils.command.install_headers.é    N)Úinstall_headers)Úsupport)Úrun_unittestc                   @   s   e Zd Zdd„ ZdS )ÚInstallHeadersTestCasec                 C   s    |   ¡ }tj |d¡}tj |d¡}|  |¡ |  |¡ ||g}| j|d\}}t|ƒ}|  | ¡ |¡ tj |d¡|_	| 
¡  | ¡  |  t| ¡ ƒd¡ d S )NÚheader1Úheader2)ÚheadersÚinsté   )ÚmkdtempÚosÚpathÚjoinZ
write_fileZcreate_distr   ZassertEqualZ
get_inputsZinstall_dirZensure_finalizedÚrunÚlenZget_outputs)ÚselfZheader_listr   r   r   Zpkg_dirÚdistÚcmd© r   úN/opt/python-3.10.19/usr/lib/python3.10/distutils/tests/test_install_headers.pyÚtest_simple_run   s   

z&InstallHeadersTestCase.test_simple_runN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   	   s    r   c                   C   s
   t  t¡S )N)ÚunittestZ	makeSuiter   r   r   r   r   Ú
test_suite#   s   
r   Ú__main__)Ú__doc__r   r   Z!distutils.command.install_headersr   Zdistutils.testsr   Ztest.supportr   ZTempdirManagerZLoggingSilencerZEnvironGuardZTestCaser   r   r   r   r   r   r   Ú<module>   s    ýÿ