2020-07-02 15:58:13 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
from testflows.core import *
|
|
|
|
|
2020-07-22 11:35:54 +00:00
|
|
|
append_path(sys.path, ".")
|
2020-07-02 15:58:13 +00:00
|
|
|
|
2021-05-07 13:14:40 +00:00
|
|
|
from helpers.common import Pool, join, run_scenario
|
2020-07-02 15:58:13 +00:00
|
|
|
from helpers.argparser import argparser
|
|
|
|
|
|
|
|
@TestModule
|
|
|
|
@Name("clickhouse")
|
|
|
|
@ArgumentParser(argparser)
|
2020-10-15 20:23:49 +00:00
|
|
|
def regression(self, local, clickhouse_binary_path, stress=None, parallel=None):
|
2020-07-02 15:58:13 +00:00
|
|
|
"""ClickHouse regression.
|
|
|
|
"""
|
2021-05-07 13:14:40 +00:00
|
|
|
top().terminating = False
|
2020-10-15 20:23:49 +00:00
|
|
|
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path, "stress": stress, "parallel": parallel}
|
2020-07-07 22:05:34 +00:00
|
|
|
|
2021-05-07 19:40:58 +00:00
|
|
|
self.context.stress = stress
|
|
|
|
self.context.parallel = parallel
|
2021-05-13 14:04:08 +00:00
|
|
|
|
|
|
|
tasks = []
|
|
|
|
with Pool(8) as pool:
|
|
|
|
try:
|
2021-07-07 08:54:37 +00:00
|
|
|
run_scenario(pool, tasks, Feature(test=load("example.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("ldap.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("rbac.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("aes_encryption.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("map_type.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("window_functions.regression", "regression")), args)
|
|
|
|
run_scenario(pool, tasks, Feature(test=load("datetime64_extended_range.regression", "regression")), args)
|
2021-06-29 07:25:01 +00:00
|
|
|
run_scenario(pool, tasks, Feature(test=load("kerberos.regression", "regression")), args)
|
2021-07-07 08:54:37 +00:00
|
|
|
run_scenario(pool, tasks, Feature(test=load("extended_precision_data_types.regression", "regression")), args)
|
2021-05-13 14:04:08 +00:00
|
|
|
finally:
|
|
|
|
join(tasks)
|
2020-07-02 15:58:13 +00:00
|
|
|
|
|
|
|
if main():
|
|
|
|
regression()
|