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
|
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
|
2020-07-02 15:58:13 +00:00
|
|
|
@TestModule
|
|
|
|
@Name("clickhouse")
|
|
|
|
@ArgumentParser(argparser)
|
2022-03-22 16:39:58 +00:00
|
|
|
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,
|
|
|
|
}
|
2020-07-07 22:05:34 +00:00
|
|
|
|
2021-05-07 19:40:58 +00:00
|
|
|
self.context.stress = stress
|
2022-03-10 01:23:41 +00:00
|
|
|
self.context.clickhouse_version = clickhouse_version
|
2021-05-13 14:04:08 +00:00
|
|
|
|
|
|
|
with Pool(8) as pool:
|
|
|
|
try:
|
2022-03-22 16:39:58 +00:00
|
|
|
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!
|
2022-01-12 17:56:16 +00:00
|
|
|
# Feature(test=load("map_type.regression", "regression"), parallel=True, executor=pool)(**args) # TODO: fix it!
|
2022-03-22 16:39:58 +00:00
|
|
|
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!
|
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
|
|
|
|
2022-03-22 16:39:58 +00:00
|
|
|
|
2020-07-02 15:58:13 +00:00
|
|
|
if main():
|
|
|
|
regression()
|