ClickHouse/tests/testflows/regression.py

39 lines
1.6 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
import sys
from testflows.core import *
append_path(sys.path, ".")
from helpers.common import Pool, join, run_scenario
from helpers.argparser import argparser
@TestModule
@Name("clickhouse")
@ArgumentParser(argparser)
def regression(self, local, clickhouse_binary_path, stress=None, parallel=None):
"""ClickHouse regression.
"""
top().terminating = False
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path, "stress": stress, "parallel": parallel}
2020-07-07 22:05:34 +00:00
self.context.stress = stress
self.context.parallel = parallel
tasks = []
with Pool(8) as pool:
try:
2021-07-10 14:14:51 +00:00
run_scenario(pool, tasks, Feature(test=load("example.regression", "regression")), args)
2021-07-10 14:14:36 +00:00
# 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-07-10 14:14:36 +00:00
run_scenario(pool, tasks, Feature(test=load("kerberos.regression", "regression")), args)
run_scenario(pool, tasks, Feature(test=load("extended_precision_data_types.regression", "regression")), args)
finally:
join(tasks)
if main():
regression()