Skip to content

Commit e5613fc

Browse files
committed
Support USE_* build flags in tests' tags
1 parent 6dbff04 commit e5613fc

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

tests/clickhouse-test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ class TestCase:
467467
for build_flag in args.build_flags:
468468
if 'no-' + build_flag in tags:
469469
return FailureReason.BUILD
470+
for tag in tags:
471+
tag = tag.replace('-', '_')
472+
if tag.startswith('use_') and tag not in args.build_flags:
473+
return FailureReason.BUILD
470474

471475
return None
472476

@@ -1069,6 +1073,11 @@ def collect_build_flags(args):
10691073
if value == 0:
10701074
result.append(BuildFlags.POLYMORPHIC_PARTS)
10711075

1076+
use_flags = clickhouse_execute(args, "SELECT name FROM system.build_options WHERE name like 'USE_%' AND value in ('ON', '1');")
1077+
for use_flag in use_flags.strip().splitlines():
1078+
use_flag = use_flag.decode().lower()
1079+
result.append(use_flag)
1080+
10721081
return result
10731082

10741083

tests/queries/0_stateless/01030_storage_hdfs_syntax.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Tags: no-fasttest
1+
-- Tags: no-fasttest, use-hdfs
22

33
drop table if exists test_table_hdfs_syntax
44
;

tests/queries/0_stateless/02004_max_hyperscan_regex_length.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
-- Tags: no-debug, no-fasttest
2-
-- Tag no-fasttest: Hyperscan
1+
-- Tags: no-debug, no-fasttest, use-hyperscan
32

43
set max_hyperscan_regexp_length = 1;
54
set max_hyperscan_regexp_total_length = 1;

tests/queries/0_stateless/02113_hdfs_assert.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Tags: no-fasttest
2+
# Tags: no-fasttest, use-hdfs
33

44
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
# shellcheck source=../shell_config.sh

tests/queries/0_stateless/02114_hdfs_bad_url.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Tags: no-fasttest
2+
# Tags: no-fasttest, use-hdfs
33

44
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
# shellcheck source=../shell_config.sh

tests/queries/1_stateful/00095_hyperscan_profiler.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Tags: no-debug
1+
-- Tags: no-debug, use-hyperscan
22

33
-- Check that server does not get segfault due to bad stack unwinding from Hyperscan
44

0 commit comments

Comments
 (0)