Skip to content

Commit

Permalink
enable/disable systemtest with cmake macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-at-bareos authored and BareosBot committed Oct 30, 2023
1 parent d237b57 commit 6262c67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion systemtests/tests/py3plug-fd-postgres/CMakeLists.txt
@@ -1,6 +1,6 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2021-2022 Bareos GmbH & Co. KG
# Copyright (C) 2021-2023 Bareos GmbH & Co. KG
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of version three of the GNU Affero General Public
Expand All @@ -20,9 +20,12 @@
if(TARGET python3-fd)
check_pymodule_available(3 pg8000)
check_pymodule_available(3 dateutil)
include(FindPostgreSQL)
if(PYMODULE_3_PG8000_FOUND
AND PostgreSQL_FOUND
AND PYMODULE_3_DATEUTIL_FOUND
AND (${Python3_VERSION_MAJOR} EQUAL 3)
AND (${PostgreSQL_VERSION_STRING} VERSION_LESS "15.0")
)
create_systemtest(${SYSTEMTEST_PREFIX} "py3plug-fd-postgres")
else()
Expand Down
3 changes: 3 additions & 0 deletions systemtests/tests/py3plug-fd-postgresql/CMakeLists.txt
Expand Up @@ -20,9 +20,12 @@
if(TARGET python3-fd)
check_pymodule_available(3 pg8000)
check_pymodule_available(3 dateutil)
include(FindPostgreSQL)
if(PYMODULE_3_PG8000_FOUND
AND PostgreSQL_FOUND
AND PYMODULE_3_DATEUTIL_FOUND
AND (${Python3_VERSION_MAJOR} EQUAL 3)
AND (${PostgreSQL_VERSION_STRING} VERSION_GREATER "10.0")
)
create_systemtest(${SYSTEMTEST_PREFIX} "py3plug-fd-postgresql")
else()
Expand Down

0 comments on commit 6262c67

Please sign in to comment.