a
    =_2                     @   sJ   d Z ddlZddlmZ ddlmZ ddlmZmZ dd Zdd	d
Z	dS )z'Test suite consisting of all testcases.    N)common)unittest)print_heavyprint_versionsc                  C   sx   g d} |  d t }tjr2|ttj | D ]<}t| t	j
| j}||  tjr6|ttj q6|S )N)ztables.tests.test_attributesztables.tests.test_basicsztables.tests.test_createztables.tests.test_backcompatztables.tests.test_typesztables.tests.test_listsztables.tests.test_tablesztables.tests.test_tablesMDztables.tests.test_arrayztables.tests.test_earrayztables.tests.test_carrayztables.tests.test_vlarrayztables.tests.test_treeztables.tests.test_timetypeztables.tests.test_do_undoztables.tests.test_enumztables.tests.test_nestedtypesztables.tests.test_hdf5compatztables.tests.test_numpyztables.tests.test_queriesztables.tests.test_expressionztables.tests.test_linksztables.tests.test_indexesztables.tests.test_indexvaluesz"tables.tests.test_index_backcompatztables.tests.test_auxztables.tests.test_utilsz tables.nodes.tests.test_filenodeztables.tests.test_garbage)appendr   Z	TestSuiter   Zshow_memoryZaddTestZ	makeSuiteZShowMemTime
__import__sysmodulessuite)Ztest_modulesZalltestsnameZ
test_suite r   6lib/python3.9/site-packages/tables/tests/test_suite.pyr
      s    $
r
   Fc                 C   sp   t   t| tj| }t_zFtjdt|  dt }|	 rNW |t_dS W |t_dS W |t_n|t_0 dS )a  Run all the tests in the test suite.

    If *verbose* is set, the test suite will emit messages with full
    verbosity (not recommended unless you are looking into a certain
    problem).

    If *heavy* is set, the test suite will be run in *heavy* mode (you
    should be careful with this because it can take a lot of time and
    resources from your computer).

    Return 0 (os.EX_OK) if all tests pass, 1 in case of failure

       )	verbosityr   N)
r   r   r   heavyr   ZTextTestRunnerintrunr
   ZwasSuccessful)verboser   Zoldheavyresultr   r   r   testE   s    r   )FF)
__doc__r   Ztables.testsr   Ztables.tests.commonr   r   r   r
   r   r   r   r   r   <module>   s   9