Skip to content

Commit

Permalink
feat tests: use USE_USERVER_REQUIREMENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton3 committed Dec 8, 2023
1 parent a775144 commit 6dff29a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions tests/requirements.txt

This file was deleted.

0 comments on commit 6dff29a

Please sign in to comment.