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
|
|
|
|
|
|
|
from helpers.argparser import argparser
|
|
|
|
|
|
|
|
@TestModule
|
|
|
|
@Name("clickhouse")
|
|
|
|
@ArgumentParser(argparser)
|
2021-07-31 19:50:27 +00:00
|
|
|
def regression(self, local, clickhouse_binary_path, stress=None):
|
2020-07-02 15:58:13 +00:00
|
|
|
"""ClickHouse regression.
|
|
|
|
"""
|
2021-07-31 19:50:27 +00:00
|
|
|
args = {"local": local, "clickhouse_binary_path": clickhouse_binary_path, "stress": stress}
|
2020-07-07 22:05:34 +00:00
|
|
|
|
2021-05-07 19:40:58 +00:00
|
|
|
self.context.stress = stress
|
2021-05-13 14:04:08 +00:00
|
|
|
|
|
|
|
with Pool(8) as pool:
|
|
|
|
try:
|
2021-07-31 19:50:27 +00:00
|
|
|
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)
|
2021-07-31 19:50:27 +00:00
|
|
|
Feature(test=load("aes_encryption.regression", "regression"), parallel=True, executor=pool)(**args)
|
2021-08-16 00:01:30 +00:00
|
|
|
# Feature(test=load("map_type.regression", "regression"), parallel=True, executor=pool)(**args)
|
2021-07-31 19:50:27 +00:00
|
|
|
Feature(test=load("window_functions.regression", "regression"), parallel=True, executor=pool)(**args)
|
|
|
|
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)
|
2021-05-13 14:04:08 +00:00
|
|
|
finally:
|
2021-07-31 19:50:27 +00:00
|
|
|
join()
|
2020-07-02 15:58:13 +00:00
|
|
|
|
|
|
|
if main():
|
|
|
|
regression()
|