#include "Device.h"
#include <thread>
#include <boost/test/unit_test.hpp>
Go to the source code of this file.
◆ BOOST_NO_EXCEPTIONS
| #define BOOST_NO_EXCEPTIONS |
◆ BOOST_TEST_DYN_LINK
| #define BOOST_TEST_DYN_LINK |
◆ BOOST_TEST_MODULE
| #define BOOST_TEST_MODULE SubdeviceBackendTest |
◆ CHECK_TIMEOUT
| #define CHECK_TIMEOUT |
( |
|
execPreCheck, |
|
|
|
condition, |
|
|
|
maxMilliseconds |
|
) |
| |
Value: { \
std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); \
execPreCheck while(!(condition)) { \
bool timeout_reached = (std::chrono::steady_clock::now() - t0) > std::chrono::milliseconds(maxMilliseconds); \
BOOST_CHECK(!timeout_reached); \
if(timeout_reached) break; \
usleep(1000); \
execPreCheck \
} \
}
Definition at line 17 of file testSubdeviceBackend.cpp.
◆ BOOST_AUTO_TEST_CASE() [1/19]
| BOOST_AUTO_TEST_CASE |
( |
test2regsScalar |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/19]
| BOOST_AUTO_TEST_CASE |
( |
test3regsArray |
| ) |
|
- Todo:
- Make a proper test with a custom backend, to make sure all elements of the array are properly written
Definition at line 512 of file testSubdeviceBackend.cpp.
◆ BOOST_AUTO_TEST_CASE() [3/19]
| BOOST_AUTO_TEST_CASE |
( |
test3regsByteOffset1 |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/19]
| BOOST_AUTO_TEST_CASE |
( |
test3regsScalar |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/19]
| BOOST_AUTO_TEST_CASE |
( |
testAreaHandshake1 |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/19]
| BOOST_AUTO_TEST_CASE |
( |
TestInvolvedBackendIDs |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [7/19]
| BOOST_AUTO_TEST_CASE |
( |
testIsFunctional |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [8/19]
| BOOST_AUTO_TEST_CASE |
( |
testMayReplaceOther |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [9/19]
| BOOST_AUTO_TEST_CASE |
( |
testOpenClose |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [10/19]
| BOOST_AUTO_TEST_CASE |
( |
testReadArrayCooked |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [11/19]
| BOOST_AUTO_TEST_CASE |
( |
testReadArrayRaw |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [12/19]
| BOOST_AUTO_TEST_CASE |
( |
testReadScalarCooked |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [13/19]
| BOOST_AUTO_TEST_CASE |
( |
testReadScalarInAreaRaw |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [14/19]
| BOOST_AUTO_TEST_CASE |
( |
testReadScalarRaw |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [15/19]
| BOOST_AUTO_TEST_CASE |
( |
testWriteArrayCooked |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [16/19]
| BOOST_AUTO_TEST_CASE |
( |
testWriteArrayRaw |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [17/19]
| BOOST_AUTO_TEST_CASE |
( |
testWriteScalarCooked |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [18/19]
| BOOST_AUTO_TEST_CASE |
( |
testWriteScalarInAreaRaw |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [19/19]
| BOOST_AUTO_TEST_CASE |
( |
testWriteScalarRaw |
| ) |
|