ClickHouse/tests/testflows/regression.py
Vitaliy Zakaznikov b0b73517fc Small fixes.
2022-03-09 20:23:41 -05:00

36 lines
1.7 KiB
Python
Executable File

#!/usr/bin/env python3
import sys
from testflows.core import *
append_path(sys.path, ".")
from helpers.argparser import argparser
@TestModule
@Name("clickhouse")
@ArgumentParser(argparser)
def regression(self, local, clickhouse_binary_path, clickhouse_version=None, stress=None):
"""ClickHouse regression.
"""
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path, "clickhouse_version": clickhouse_version, "stress": stress}
self.context.stress = stress
self.context.clickhouse_version = clickhouse_version
with Pool(8) as pool:
try:
Feature(test=load("example.regression", "regression"), parallel=True, executor=pool)(**args)
Feature(test=load("ldap.regression", "regression"), parallel=True, executor=pool)(**args)
Feature(test=load("rbac.regression", "regression"), parallel=True, executor=pool)(**args)
Feature(test=load("aes_encryption.regression", "regression"), parallel=True, executor=pool)(**args) # TODO: fix it!
# Feature(test=load("map_type.regression", "regression"), parallel=True, executor=pool)(**args) # TODO: fix it!
Feature(test=load("window_functions.regression", "regression"), parallel=True, executor=pool)(**args) # TODO: fix it!
Feature(test=load("datetime64_extended_range.regression", "regression"), parallel=True, executor=pool)(**args)
Feature(test=load("kerberos.regression", "regression"), parallel=True, executor=pool)(**args)
Feature(test=load("extended_precision_data_types.regression", "regression"), parallel=True, executor=pool)(**args) # TODO: fix it!
finally:
join()
if main():
regression()