41#include <boost/test/unit_test.hpp>
42#include <boost/filesystem.hpp>
61 uint32_t x1 =
static_cast<uint32_t
> ( rand() );
62 uint32_t x2 =
static_cast<uint32_t
> ( rand() );
84 boost::filesystem::path conn_fn ( connectionFileURI );
85 boost::filesystem::path
fn (
"dummy_address.xml" );
89 std::string
uri = getHwInterface().uri();
93 uint32_t
x =
static_cast<uint32_t
> ( rand() );
108 std::vector<std::string> ids = manager.getDevices (
"^" + deviceId +
"$" );
109 BOOST_CHECK ( std::find ( ids.begin(),ids.end(), deviceId ) != ids.end() );
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.
void setTimeoutPeriod(const uint32_t &aTimeoutPeriod)
A method to modify the timeout period for any pending or future transactions.
ValWord< uint32_t > read() const
Read a single, unmasked, unsigned word.
ValHeader write(const uint32_t &aValue) const
Write a single, unmasked word to a register.
bool valid()
Return whether the Validated memory is marked as valid.
std::vector< T > value() const
Return the value of the validated memory with check on validity.
T value() const
Return the value of the validated memory with check on validity.
bool valid()
Return whether the Validated memory is marked as valid.
None tests(nox.Session session)
BOOST_CHECK_THROW(hw.getNode("REG").writeBlockOffset(xx, 0), uhal::exception::BulkTransferOffsetRequestedForSingleRegister)
BOOST_CHECK_EQUAL(mem.size(), N)
BOOST_CHECK_NO_THROW(hw.getNode("REG").writeBlock(xx))
ValVector< uint32_t > mem
BOOST_CHECK(!mem.valid())
on_the_fly_connect_write_read
boost::filesystem::path fn("dummy_address.xml")
#define UHAL_TESTS_DEFINE_CLIENT_TEST_CASES(test_suite_name, test_case_name, test_fixture, test_case_contents)