o
    tVg                     @   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   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_threadTHREADSintz#run subprocessed tests in x THREADS)metavartyper   z-tz
--time_out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__pkg_dir
parent_dirpkg_nameis_pygame_pkginsert
startswith!pygame.tests.test_utils.run_testsr   #pygame.tests.test_utils.test_runnerr   test.test_utils.run_teststest.test_utils.test_runnertest_pkg_nameargv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     r=   r=   I/home/ubuntu/.local/lib/python3.10/site-packages/pygame/tests/__main__.py<module>   s    









