mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
78 lines
2.2 KiB
Python
Executable File
78 lines
2.2 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()
|