Skip to content

Commit

Permalink
Log which DB tests are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Jun 18, 2024
1 parent 64bc16d commit 380053a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/TestDatabase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ option(database-mysql-tests "Whether to include the MySQL database tests (requir
option(database-postgresql-tests "Whether to include the PostgreSQL database tests (requires special setup)" OFF)

if (NOT enable-sqlite)
message(STATUS "Disabling SQLite database tests as SQLite is not used")
set(database-sqlite-tests OFF CACHE INTERNAL "" FORCE)
endif()
if (NOT enable-mysql)
message(STATUS "Disabling MySQL database tests as MySQL is not used")
set(database-mysql-tests OFF CACHE INTERNAL "" FORCE)
endif()
if (NOT enable-postgresql)
message(STATUS "Disabling PostgreSQL database tests as PostgreSQL is not used")
set(database-postgresql-tests OFF CACHE INTERNAL "" FORCE)
endif()

Expand All @@ -34,12 +37,15 @@ add_executable(TestDatabase
set(MUMBLE_DB_TEST_DEFINES "")

if(database-sqlite-tests)
message(STATUS "Enabling SQLite database tests")
list(APPEND MUMBLE_DB_TEST_DEFINES "MUMBLE_TEST_SQLITE")
endif()
if(database-mysql-tests)
message(STATUS "Enabling MySQL database tests")
list(APPEND MUMBLE_DB_TEST_DEFINES "MUMBLE_TEST_MYSQL")
endif()
if(database-postgresql-tests)
message(STATUS "Enabling PostgreSQL database tests")
list(APPEND MUMBLE_DB_TEST_DEFINES "MUMBLE_TEST_POSTGRESQL")
endif()

Expand Down

0 comments on commit 380053a

Please sign in to comment.