44#include <boost/test/unit_test.hpp>
62 hwRunner.setReplyDelay( std::chrono::milliseconds(timeout) + std::chrono::seconds(1) );
63 HwInterface
hw = getHwInterface();
68 const std::chrono::milliseconds sleepDuration = std::chrono::milliseconds(timeout) + std::chrono::seconds(1);
69 BOOST_TEST_MESSAGE(
"Sleeping for " << sleepDuration.count() <<
"ms to allow DummyHardware to clear itself");
70 std::this_thread::sleep_for(sleepDuration);
72 uint32_t
x =
static_cast<uint32_t
> ( rand() );
const Node & getNode() const
Retrieve the top-level node.
void dispatch()
Make the IPbus client issue a dispatch.
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.
None tests(nox.Session session)
BOOST_CHECK_THROW(hw.getNode("REG").writeBlockOffset(xx, 0), uhal::exception::BulkTransferOffsetRequestedForSingleRegister)
BOOST_CHECK_NO_THROW(hw.getNode("REG").writeBlock(xx))
BOOST_CHECK(!mem.valid())
#define UHAL_TESTS_DEFINE_CLIENT_TEST_CASES(test_suite_name, test_case_name, test_fixture, test_case_contents)