Skip to content
Snippets Groups Projects
Commit 5ea7213f authored by Jorge Camarero Vera's avatar Jorge Camarero Vera
Browse files

Resolve "Check latest version of gtest suite"

parent 40a21dfa
No related branches found
No related tags found
No related merge requests found
Pipeline #37987 failed
......@@ -2,7 +2,9 @@
## Summary
### Features
- cta/CTA#146 - Refactoring of operation tools cmd line parsing
- cta/CTA#146 - Refactoring of operation tools cmd line parsing
### Building and Packaging
- cta/CTA#107 - Check latest version of gtest suite
# v4.7.12-1
......
# @project The CERN Tape Archive (CTA)
# @copyright Copyright © 2015-2022 CERN
# @license This program is free software, distributed under the terms of the GNU General Public
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". You can
# redistribute it and/or modify it under the terms of the GPL Version 3, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization or
# submit itself to any jurisdiction.
# This module will set the following variables:
# GMOCK_SRC
set(GMOCK_SRC "/usr/src/gmock/gmock-all.cc")
if(NOT EXISTS ${GMOCK_SRC})
unset(GMOCK_SRC)
endif(NOT EXISTS ${GMOCK_SRC})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(gmock DEFAULT_MSG
GMOCK_SRC)
......@@ -39,3 +39,10 @@ baseurl=https://cta-ci-repo.web.cern.ch/cta-ci-repo/xrootd5/
priority=4
gpgcheck=0
enabled=0
[cta-ci-dependencies]
name=CTA CI repo dependencies
baseurl=https://cta-ci-repo.web.cern.ch/cta-ci-repo/cta-dependencies/
priority=4
gpgcheck=0
enabled=1
\ No newline at end of file
......@@ -52,7 +52,7 @@ BuildRequires: xrootd-server-devel >= %{xrootdVersion}
BuildRequires: xrootd-private-devel >= %{xrootdVersion}
BuildRequires: librados-devel = %{radosVersion}, libradosstriper-devel = %{radosVersion},
BuildRequires: protobuf3-compiler >= 3.3.1 protobuf3-devel >= 3.3.1
BuildRequires: gmock-devel >= 1.5.0 gtest-devel >= 1.5.0
BuildRequires: gtest-devel >= 1.12.0
BuildRequires: sqlite-devel >= 3.6
BuildRequires: libcap-devel >= 2.16
BuildRequires: binutils-devel >= 2.20
......@@ -316,6 +316,7 @@ Requires: cta-taped = %{ctaVersion}-%{ctaRelease}%{mydist}
Requires: make
Requires: moreutils
Requires: xrootd-client-libs >= %{xrootdVersion}
Requires: gtest-devel >= 1.12.0
%description -n cta-systemtests
CERN Tape Archive:
Unit tests and system tests with virtual tape drives
......
......@@ -32,17 +32,6 @@
#include "RootEntry.hpp"
#include "tests/TestsCompileTimeSwitches.hpp"
std::ostream& operator<<(std::ostream& os, const cta::objectstore::ContainerTraits<cta::objectstore::RetrieveQueue, cta::objectstore::RetrieveQueueToTransfer>::PoppedElementsSummary& s) {
os <<
"{"
"files=" << s.files << ","
"bytes=" << s.bytes << ","
"diskSystemFull=" << (s.diskSystemFull ? "true" : "false") << ","
"fullDiskSystem=\"" << s.fullDiskSystem << "\""
"}";
return os;
}
namespace unitTests {
/**
......
......@@ -14,13 +14,11 @@
# submit itself to any jurisdiction.
cmake_minimum_required (VERSION 3.17)
find_package(gmock REQUIRED)
find_package(Protobuf3 REQUIRED)
include_directories(${PROTOBUF3_INCLUDE_DIRS})
add_executable(cta-unitTests
unit_tests.cpp
${GMOCK_SRC})
unit_tests.cpp)
set (CTA_UNIT_TEST_LIBS
ctacataloguecmdlineunittests
......@@ -42,6 +40,7 @@ set (CTA_UNIT_TEST_LIBS
ctadiskunittests
ctatapelabelunittests
gtest
gmock
pthread
ctatapeserverraounittests)
......@@ -61,8 +60,7 @@ endif (OCCI_SUPPORT)
add_executable(cta-rdbmsUnitTests
GlobalCatalogueFactoryForUnitTests.cpp
RdbmsUnitTestsCmdLineArgs.cpp
rdbmsUnitTests.cpp
${GMOCK_SRC})
rdbmsUnitTests.cpp)
target_link_libraries(cta-rdbmsUnitTests
ctadropschemacmd
......@@ -72,6 +70,7 @@ target_link_libraries(cta-rdbmsUnitTests
ctardbmsunittests
ctadisk
gtest
gmock
pthread
${PROTOBUF3_LIBRARIES})
......@@ -81,13 +80,13 @@ if (OCCI_SUPPORT)
endif (OCCI_SUPPORT)
add_executable(cta-unitTests-multiProcess
unit_tests.cpp
${GMOCK_SRC})
unit_tests.cpp)
target_link_libraries(cta-unitTests-multiProcess
ctadaemonunittests-multiprocess
ctacommon
gtest
gmock
pthread
${PROTOBUF3_LIBRAIRES}
sqlite3)
......@@ -109,8 +108,7 @@ target_link_libraries(systemTestHelperTests
ctacommon)
add_executable(cta-systemTests
system_tests.cpp
${GMOCK_SRC})
system_tests.cpp)
set_property (TARGET cta-systemTests APPEND PROPERTY INSTALL_RPATH ${PROTOBUF3_RPATH})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment