ClickHouse/tests/testflows/regression.py

35 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.argparser import argparser
@TestModule
@Name("clickhouse")
@ArgumentParser(argparser)
def regression(self, local, clickhouse_binary_path, stress=None):
"""ClickHouse regression.
"""
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path, "stress": stress}
2020-07-07 22:05:34 +00:00
self.context.stress = stress
with Pool(8) as pool:
try:
Feature(test=load("example.regression", "regression"), parallel=True, executor=pool)(**args)
2022-01-12 11:46:13 +00:00
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()