o
    OZh                     @   s  d Z ddlZedkr:ddlZejejed Zeje\Z	Z
e
dko/eje	d dkZes9ejde	 nedZerNddlmZ dd	lmZ nddlmZ dd	lmZ er_d
ZndZejd Zedkrpde dZede de d ejddddd ejdddd ejdddddd  ejd!d"d#dd$d  ejd%d&d'd(d) ejd*d+d,d-ej d) ejd.d/dd0d ejd1d2dd3d4 e \ZZi Zejrd5ed6< ejrd5ed7< nd8ed7< ej rd5ed9< ej!rej!ed:< ej"rej"ed;< ej#rd5ed<< ej$r
d5ed=< ej%durej%ed>< ej&dur ej&ed?< ej'dur+ej'ed@< ej(r4ej(edA< ej)r=ej)edB< ej*rEd5edC< ej+durNej+ndedD< eei e dS )Ea  Load and run the Pygame test suite

python -c "import pygame.tests.go" [<test options>]

or

python test/go.py [<test options>]

Command line option --help displays a command line usage message.

run_tests.py in the main distribution directory is an alternative to test.go

    N__main__tests   Zpygamezpygame.tests.)run_and_exit)
opt_parserzpygame.teststestz-czpython -c "import z.go"z

Runs all or some of the z.xxxx_test tests.

$ z sprite threads -sd

Runs the sprite and threads module tests isolated in subprocesses, dumping
all failing tests info in the form of a dict.

z-dz--dump
store_truez"dump results as dict ready to eval)actionhelpz-Fz--filezdump results to a file)r
   z-mz--multi_threadZTHREADSintz#run subprocessed tests in x THREADS)metavartyper
   z-tz
--time_outZSECONDSz-kill stalled subprocessed tests after SECONDSz-fz--fakeDIRz'run fake tests in run_tests__tests/$DIR)r   r
   z-pz--pythonPYTHONzPpath to python executable to run subproccesed tests
default (sys.executable): %sz-Iz--interactivez"include tests requiring user inputz-Sz--seedzRandomisation seed)r   r
   T
incompleteusesubprocessFdumpfileexclude
unbuffered	randomizeseedmulti_threadtime_outfakepythoninteractive	verbosity),__doc__sys__name__ospathsplitabspath__file__Zpkg_dir
parent_dirpkg_nameZis_pygame_pkginsert
startswithZ!pygame.tests.test_utils.run_testsr   Z#pygame.tests.test_utils.test_runnerr   Ztest.test_utils.run_testsZtest.test_utils.test_runnerZtest_pkg_nameargvZprogram_name	set_usage
add_option
executable
parse_argsoptionsargskwdsr   r   r   r   r   r   r   r   r   r   r   r   r   r    r2   r2   D/var/www/auris/lib/python3.10/site-packages/pygame/tests/__main__.py<module>   s    









