Sindbad~EG File Manager
�
SԚg�
� � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
G d� de
j e
j ej
� � Zed k r ej � � dS dS )
z*Tests for distutils.command.build_scripts.� N)�
build_scripts)�Distribution)� sysconfig)�supportc �2 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�BuildScriptsTestCasec �, � | � dg � � }| � |j � � | � |j � � |� � � | � |j � � | � |j d� � d S )Nz/foo/bar)�get_build_scripts_cmd�assertFalse�force�assertIsNone� build_dir�finalize_options�
assertTrue�assertEqual)�self�cmds �?/usr/local/lib/python3.11/distutils/tests/test_build_scripts.py�test_default_settingsz*BuildScriptsTestCase.test_default_settings s� � ��(�(��R�8�8�������#�#�#����#�-�(�(�(����������� �"�"�"������
�3�3�3�3�3� c �t �� | � � � �| � � � }| � �� � }| � |�fd�|D � � � � }|� � � |� � � t j |� � }|D ]}| � ||� � �d S )Nc �P �� g | ]"}t j � �|� � ��#S � ��os�path�join��.0�fn�sources �r �
<listcomp>z3BuildScriptsTestCase.test_build.<locals>.<listcomp>! �9 �� � *>� *>� *>�.0� +-�'�,�,�v�r�*B�*B� *>� *>� *>r )�mkdtemp�write_sample_scriptsr
r �runr �listdir�assertIn)r �target�expectedr �built�namer! s @r �
test_buildzBuildScriptsTestCase.test_build s� �� ��������������,�,�V�4�4���(�(��*>� *>� *>� *>�4<�*>� *>� *>�?� ?�� ��������� � � ��
�6�"�"��� '� '�D��M�M�$��&�&�&�&� '� 'r c � � dd l }t � � }||_ t j |d|j �� � |j d<