41#include <boost/test/unit_test.hpp>
54 const size_t numTests(quickTest ? 1 : 10);
55 for (
size_t i = 0; i < numTests; i++) {
59 if ( (
hw.
uri().find (
"ipbustcp" ) != std::string::npos ) || (
hw.
uri().find (
"ipbuspcie" ) != std::string::npos) )
72HwInterface getHwWithModifiedControlHubPort(
const std::string& aConnectionFile,
const std::string& aDeviceId)
74 typedef boost::filesystem::path Path_t;
75 const std::string lAddrFilePath = ( Path_t(aConnectionFile).parent_path() / Path_t(
"dummy_address.xml") ).
string();
78 const std::string lModifiedUri = lOriginalUri.substr(0, lOriginalUri.find(
"?")-1) + lOriginalUri.substr(lOriginalUri.find(
"?"));
86 for (
size_t i = 0; i < 10; i++) {
87 HwInterface
hw = getHwWithModifiedControlHubPort(connectionFileURI, deviceId);
93 BOOST_TEST_MESSAGE(
" *** Skipping check_nonreachable_controlhub test case, since client under test does not talk to ControlHub. ***");
const std::string & uri() const
Return the url of the target for this client.
A class to open and manage XML connection files and wrap up the interfaces to the NodeTreeBuilder and...
HwInterface getDevice(const std::string &aId)
Retrieves protocol, host, and port from the connection file to create an IPbus Client Retrieves the a...
A class which bundles a node tree and an IPbus client interface together providing everything you nee...
const Node & getNode() const
Retrieve the top-level node.
void dispatch()
Make the IPbus client issue a dispatch.
ClientInterface & getClient()
Get the underlying IPbus client.
const std::string & uri() const
Return the url of the target for this client.
None tests(nox.Session session)
BOOST_CHECK_THROW(hw.getNode("REG").writeBlockOffset(xx, 0), uhal::exception::BulkTransferOffsetRequestedForSingleRegister)
#define UHAL_TESTS_DEFINE_CLIENT_TEST_CASES(test_suite_name, test_case_name, test_fixture, test_case_contents)