Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
test
shlib_utils_t.cc
Go to the documentation of this file.
1
#define BOOST_TEST_MODULE (shlib_utils_t)
2
#include "boost/test/unit_test.hpp"
3
4
#include "
cetlib/shlib_utils.h
"
5
6
BOOST_AUTO_TEST_SUITE(shlib_utils_t)
7
8
BOOST_AUTO_TEST_CASE
(
prefix
)
9
{
10
BOOST_TEST_REQUIRE
(
cet::shlib_prefix
() ==
std::string
(
"lib"
));
11
}
12
13
BOOST_AUTO_TEST_CASE
(suffix)
14
{
15
#if __APPLE__ && __MACH__
16
BOOST_TEST_REQUIRE
(
cet::shlib_suffix
() ==
std::string
(
".dylib"
));
17
#elif __linux__
18
BOOST_TEST_REQUIRE
(
cet::shlib_suffix
() ==
std::string
(
".so"
));
19
#else
20
#error "Unrecognized architecture!"
21
#endif
22
}
23
24
BOOST_AUTO_TEST_SUITE_END()
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
BOOST_TEST_REQUIRE
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
cet::shlib_suffix
std::string shlib_suffix()
cet::shlib_prefix
std::string shlib_prefix()
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(prefix)
Definition:
shlib_utils_t.cc:8
shlib_utils.h
Generated by
1.8.11