diff --git a/dbms/tests/integration/test_random_inserts/__init__.py b/tests/integration/test_random_inserts/__init__.py similarity index 100% rename from dbms/tests/integration/test_random_inserts/__init__.py rename to tests/integration/test_random_inserts/__init__.py diff --git a/dbms/tests/performance/distributed_aggregation.xml b/tests/performance/distributed_aggregation.xml similarity index 100% rename from dbms/tests/performance/distributed_aggregation.xml rename to tests/performance/distributed_aggregation.xml diff --git a/dbms/tests/queries/0_stateless/01107_join_right_table_totals.reference b/tests/queries/0_stateless/01107_join_right_table_totals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01107_join_right_table_totals.reference rename to tests/queries/0_stateless/01107_join_right_table_totals.reference diff --git a/dbms/tests/queries/0_stateless/01107_join_right_table_totals.sql b/tests/queries/0_stateless/01107_join_right_table_totals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01107_join_right_table_totals.sql rename to tests/queries/0_stateless/01107_join_right_table_totals.sql diff --git a/dbms/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.reference b/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.reference rename to tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.reference diff --git a/dbms/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.sh b/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.sh rename to tests/queries/0_stateless/01107_tuples_arrays_parsing_exceptions.sh diff --git a/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.reference b/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.reference rename to tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.reference diff --git a/dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh b/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh rename to tests/queries/0_stateless/01108_restart_replicas_rename_deadlock.sh diff --git a/dbms/tests/queries/0_stateless/01201_read_single_thread_in_order.reference b/tests/queries/0_stateless/01201_read_single_thread_in_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01201_read_single_thread_in_order.reference rename to tests/queries/0_stateless/01201_read_single_thread_in_order.reference diff --git a/dbms/tests/queries/0_stateless/01201_read_single_thread_in_order.sql b/tests/queries/0_stateless/01201_read_single_thread_in_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01201_read_single_thread_in_order.sql rename to tests/queries/0_stateless/01201_read_single_thread_in_order.sql diff --git a/dbms/tests/queries/0_stateless/01223_dist_on_dist.reference b/tests/queries/0_stateless/01223_dist_on_dist.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01223_dist_on_dist.reference rename to tests/queries/0_stateless/01223_dist_on_dist.reference diff --git a/dbms/tests/queries/0_stateless/01223_dist_on_dist.sql b/tests/queries/0_stateless/01223_dist_on_dist.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01223_dist_on_dist.sql rename to tests/queries/0_stateless/01223_dist_on_dist.sql diff --git a/dbms/tests/queries/bugs/01224_dist_on_dist_global_in.reference b/tests/queries/bugs/01224_dist_on_dist_global_in.reference similarity index 100% rename from dbms/tests/queries/bugs/01224_dist_on_dist_global_in.reference rename to tests/queries/bugs/01224_dist_on_dist_global_in.reference diff --git a/dbms/tests/queries/bugs/01224_dist_on_dist_global_in.sql b/tests/queries/bugs/01224_dist_on_dist_global_in.sql similarity index 100% rename from dbms/tests/queries/bugs/01224_dist_on_dist_global_in.sql rename to tests/queries/bugs/01224_dist_on_dist_global_in.sql