From 6dff29a7ca744c55d53d676ff8f1560b8241eca2 Mon Sep 17 00:00:00 2001 From: Anton Zhilin Date: Fri, 8 Dec 2023 16:56:04 +0300 Subject: [PATCH] feat tests: use USE_USERVER_REQUIREMENTS --- CMakeLists.txt | 13 ++++++++++--- tests/requirements.txt | 2 -- 2 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 tests/requirements.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e52d19..ed9dd3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,15 @@ cmake_minimum_required(VERSION 3.12) project(service_template CXX) +# Disable userver libraries that are not needed in this project +set(USERVER_FEATURE_MONGODB OFF CACHE BOOL "Provide asynchronous driver for MongoDB" FORCE) +set(USERVER_FEATURE_POSTGRESQL OFF CACHE BOOL "Provide asynchronous driver for PostgreSQL" FORCE) +set(USERVER_FEATURE_REDIS OFF CACHE BOOL "Provide asynchronous driver for Redis" FORCE) +set(USERVER_FEATURE_CLICKHOUSE OFF CACHE BOOL "Provide asynchronous driver for ClickHouse" FORCE) +set(USERVER_FEATURE_GRPC OFF CACHE BOOL "Provide asynchronous driver for gRPC" FORCE) +set(USERVER_FEATURE_RABBITMQ OFF CACHE BOOL "Provide asynchronous driver for RabbitMQ" FORCE) + + include(third_party/userver/cmake/SetupEnvironment.cmake) include(GNUInstallDirs) @@ -39,9 +48,7 @@ add_google_benchmark_tests(${PROJECT_NAME}_benchmark) # Functional Tests include(UserverTestsuite) -userver_testsuite_add_simple( - REQUIREMENTS "${CMAKE_CURRENT_SOURCE_DIR}/tests/requirements.txt" -) +userver_testsuite_add_simple(USE_USERVER_REQUIREMENTS) # Install diff --git a/tests/requirements.txt b/tests/requirements.txt deleted file mode 100644 index 366916e..0000000 --- a/tests/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -yandex-taxi-testsuite >= 0.1.17 -websockets >= 11.0.3