Exemple #1
0
#
# Defined in test_runner.py as it shares options, added to here

opt_parser.set_usage("""

Runs all or some of the %(pkg)s.xxxx_test tests.

$ %(exec)s sprite threads -sd

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

""" % {'pkg': test_pkg_name, 'exec': program_name})

opt_parser.add_option (
     "-d",  "--dump", action = 'store_true',
     help   = "dump failures/errors as dict ready to eval" )

opt_parser.add_option (
     "-F",  "--file",
     help   = "dump failures/errors to a file" )

opt_parser.add_option (
     "-a",  "--all", action = 'store_true',
     help   = "dump all results not just errors eg. -da" )

opt_parser.add_option (
     "-m",  "--multi_thread", metavar = 'THREADS', type = 'int',
     help   = "run subprocessed tests in x THREADS" )

opt_parser.add_option (
Exemple #2
0
opt_parser.set_usage(
    f"""

Runs all or some of the {test_pkg_name}.xxxx_test tests.

$ {program_name} sprite threads -sd

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

"""
)

opt_parser.add_option(
    "-d", "--dump", action="store_true", help="dump results as dict ready to eval"
)

opt_parser.add_option("-F", "--file", help="dump results to a file")

opt_parser.add_option(
    "-m",
    "--multi_thread",
    metavar="THREADS",
    type="int",
    help="run subprocessed tests in x THREADS",
)

opt_parser.add_option(
    "-t",
    "--time_out",