
    %
i                     8   d Z ddlZddlZddlZddlZej                            ej                            ej                            e                              Z ej	                    g ej
                    z   Zg Zd Zd Zd Zedk    r e             dS dS )zA test runner for pywin32    Nc                    t           j                            |           \  }}t          j        d|g|z   }t          d| z             t          j                                         t          j	        |d|          }t          d|  d|j
                    t          j                                         |j
        rt                              |            d S d S )Nz-uz--- Running '%s' ---F)checkcwdz*** Test script 'z' exited with )ospathsplitsys
executableprintstdoutflush
subprocessrun
returncodefailuresappend)scriptcmdline_extrasdirname
scriptnamecmdresults         C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\../../Scripts/pywin32_testall.pyrun_testr      s    '--//GZ>4
,~
=C	
 6
)***J^Cu':::F	
Gf
G
GF4E
G
GHHHJ         c                     | D ]4}t           j                            |          rt          ||            d S 5t	          d| z            )Nz+Failed to locate a test script in one of %s)r   r   isfiler   RuntimeError)possible_locationsextrasmaybes      r   find_and_runr"       s`    # 
 
7>>%   	UF###EE	 9<NN
 
 	
r   c                    	 dd l } t          gt          z   }|                     d          }|                    dddd           |                    d	dd
           |                    dddd           |                                \  }}g }|j        r|                    d	           |                    |           ddg}|D ] 		fd|D             }t          ||           !d t          j                            t          d          gt          z   D             }|dgz   }t          ||           |j        s8d |D             }t          ||           d |D             }t          ||           t          r=t          d           t          D ]}t          d|           t!          j        d           t          d           d S )Nr   z8A script to trigger tests in all subprojects of PyWin32.)descriptionz-no-user-interactionF
store_truezC(This is now the default - use `-user-interaction` to include them))defaultactionhelpz-user-interactionz,Include tests which require user interaction)r'   r(   z-skip-adodbapiz@Skip the adodbapi tests; useful for CI where there's no providerzwin32/test/testall.pyzPythonwin/pywin/test/all.pyc                 P    g | ]"}t           j                            |          #S  r   r   join).0	directoryr   s     r   
<listcomp>zmain.<locals>.<listcomp>T   s)    TTTi"',,y&11TTTr   c                 R    g | ]$}t           j                            |d dd          %S )win32comtestz
testall.pyr+   r-   r.   s     r   r/   zmain.<locals>.<listcomp>X   s<        	Y
FLAA  r   com1c                 R    g | ]$}t           j                            |d dd          %S )adodbapir2   zadodbapitest.pyr+   r3   s     r   r/   zmain.<locals>.<listcomp>a   s=     
 
 
 GLLJ8IJJ
 
 
r   c                 R    g | ]$}t           j                            |d dd          %S )r7   r2   ztest_adodbapi_dbapi20.pyr+   r3   s     r   r/   zmain.<locals>.<listcomp>i   s=     
 
 
 GLLJ8RSS
 
 
r   zThe following scripts failed>   zAll tests passed \o/)argparseproject_rootsite_packagesArgumentParseradd_argumentparse_known_argsuser_interactionr   extendr"   r   r   r,   skip_adodbapir   r   r	   exit)
r;   code_directoriesparserargsremainsr    scriptsmaybesfailurer   s
            @r   mainrL   +   sh   OOO$~5$$N %  F R	     ;     O	     ++--MD' F +)***
MM'%G  % %TTTTCSTTTVV$$$$ ',,|U;;<}L  F u_F     &
 
-
 
 
 	VW%%%
 
-
 
 
 	VW%%% ,--- 	  	 G#w	
!"""""r   __main__)__doc__r   siter   r	   r   r   __file__r<   getusersitepackagesgetsitepackagesr=   r   r   r"   rL   __name__r*   r   r   <module>rT      s      				      



 wrwrwx/H/HIIJJ))++,/Ct/C/E/EE
  
  
 
 
 
I# I# I#X zDFFFFF r   