a
    xþd  ã                   @   s<   d dl mZ d dlZd dlZddlmZ G dd„ deƒZdS )é    )Úabsolute_importNé   )ÚFileBasedTestc                   @   s(   e Zd ZdZdg g fdd„Zdd„ ZdS )ÚShTestaI  ShTest is a format with one file per test.

    This is the primary format for regression tests as described in the LLVM
    testing guide:

        http://llvm.org/docs/TestingGuide.html

    The ShTest files contain some number of shell-like command pipelines, along
    with assertions about what should be in the output.
    Fc                 C   s   || _ || _|| _d S ©N)Úexecute_externalÚextra_substitutionsÚpreamble_commands)Úselfr   r   r	   © r   ú[/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/lit/formats/shtest.pyÚ__init__   s    zShTest.__init__c                 C   s   t j ||| j| j| j¡S r   )ÚlitZ
TestRunnerZexecuteShTestr   r   r	   )r
   ÚtestZ	litConfigr   r   r   Úexecute   s
    
ýzShTest.executeN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   	   s
   
ÿ
r   )Ú
__future__r   Zlit.TestRunnerr   Zlit.utilÚbaser   r   r   r   r   r   Ú<module>   s   