2020-07-02 15:58:13 +00:00
|
|
|
import os
|
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
|
2020-07-02 15:58:13 +00:00
|
|
|
def argparser(parser):
|
2022-03-22 16:39:58 +00:00
|
|
|
"""Default argument parser for regressions."""
|
|
|
|
parser.add_argument(
|
|
|
|
"--local",
|
2020-07-02 15:58:13 +00:00
|
|
|
action="store_true",
|
2022-03-22 16:39:58 +00:00
|
|
|
help="run regression in local mode",
|
|
|
|
default=False,
|
|
|
|
)
|
2020-07-28 20:14:52 +00:00
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
parser.add_argument(
|
|
|
|
"--clickhouse-version",
|
|
|
|
type=str,
|
|
|
|
dest="clickhouse_version",
|
|
|
|
help="clickhouse server version",
|
|
|
|
metavar="version",
|
|
|
|
default=os.getenv("CLICKHOUSE_TESTS_SERVER_VERSION", None),
|
|
|
|
)
|
2022-02-11 01:08:41 +00:00
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
parser.add_argument(
|
|
|
|
"--clickhouse-binary-path",
|
|
|
|
type=str,
|
|
|
|
dest="clickhouse_binary_path",
|
|
|
|
help="path to ClickHouse binary, default: /usr/bin/clickhouse",
|
|
|
|
metavar="path",
|
|
|
|
default=os.getenv("CLICKHOUSE_TESTS_SERVER_BIN_PATH", "/usr/bin/clickhouse"),
|
|
|
|
)
|
2020-10-15 20:23:49 +00:00
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
parser.add_argument(
|
|
|
|
"--stress",
|
|
|
|
action="store_true",
|
|
|
|
default=False,
|
|
|
|
help="enable stress testing (might take a long time)",
|
|
|
|
)
|