3 #define BOOST_TEST_MODULE (LibraryManager Test) 4 #include "boost/test/unit_test.hpp" 7 #include "cetlib_except/exception.h" 18 #if defined(LIBRARY_MANAGER_SEARCH_PATH) 29 : lm{
search_path{
"LIBRARY_MANAGER_SEARCH_PATH"},
"cetlibtest"}, lm_ref{lm}
50 std::vector<std::string> lib_list;
56 std::vector<std::string> lib_list;
62 std::vector<std::string> lib_list;
68 std::vector<std::string> lib_list;
92 BOOST_CHECK_EXCEPTION(
95 [](
cet::exception const&
e) { return e.category() ==
"Configuration"; });
103 while ((
pos = libspec.find_first_of(
'/',
pos)) != std::string::npos) {
115 BOOST_CHECK_NO_THROW(
118 verify(libspecA, idString);
119 BOOST_CHECK_NO_THROW(
122 verify(libspecB, idString);
123 BOOST_CHECK_NO_THROW(
126 verify(libspecA, idString);
134 BOOST_CHECK_NO_THROW(
137 verify(libspecA, idString);
138 BOOST_CHECK_NO_THROW(
141 verify(libspecB, idString);
142 BOOST_CHECK_NO_THROW(
145 verify(libspecA, idString);
150 std::vector<std::string> lib_list;
157 std::vector<std::string> lib_list;
170 std::vector<std::string> lib_list;
178 std::vector<std::string> lib_list;
183 BOOST_AUTO_TEST_SUITE_END()
size_t getValidLibspecs(std::vector< std::string > &list) const
LibraryManagerTestFixture()
LibraryManager const & lm_ref
bool libraryIsLoadable(std::string const &path) const
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
T getSymbolByLibspec(std::string const &libspec, std::string const &sym_name) const
size_t getLoadableLibraries(std::vector< std::string > &list) const
void loadAllLibraries() const
bool libraryIsLoaded(std::string const &path) const
std::string(*)( idString_t)
BOOST_AUTO_TEST_CASE(libSpecsVector)
cet::coded_exception< error, detail::translate > exception