#include "BackendFactory.h"
#include "Device.h"
#include "DummyBackend.h"
#include "Exception.h"
#include "parserUtilities.h"
#include <boost/bind/bind.hpp>
#include <boost/function.hpp>
#include <boost/lambda/lambda.hpp>
#include <regex>
#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 testDummyBackend |
◆ CLOCK_MUX_REGISTER_STRING
#define CLOCK_MUX_REGISTER_STRING "WORD_CLK_MUX" |
◆ CLOCK_RESET_REGISTER_STRING
#define CLOCK_RESET_REGISTER_STRING "WORD_CLK_RST" |
◆ EXISTING_DEVICE
#define EXISTING_DEVICE "(TestableDummy?map=" TEST_MAPPING_FILE ")" |
◆ FIRMWARE_REGISTER_STRING
#define FIRMWARE_REGISTER_STRING "WORD_FIRMWARE" |
◆ NON_EXISTING_DEVICE
#define NON_EXISTING_DEVICE "DUMMY9" |
◆ READ_ONLY_REGISTER_STRING
#define READ_ONLY_REGISTER_STRING "WORD_READ_ONLY" |
◆ STATUS_REGISTER_STRING
#define STATUS_REGISTER_STRING "WORD_STATUS" |
◆ TEST_MAPPING_FILE
#define TEST_MAPPING_FILE "mtcadummy_withoutModules.map" |
◆ USER_REGISTER_STRING
#define USER_REGISTER_STRING "WORD_USER" |
◆ BOOST_AUTO_TEST_CASE() [1/16]
BOOST_AUTO_TEST_CASE |
( |
testAddressRange |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/16]
BOOST_AUTO_TEST_CASE |
( |
testCheckSizeIsMultipleOfWordSize |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/16]
BOOST_AUTO_TEST_CASE |
( |
testClose |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/16]
BOOST_AUTO_TEST_CASE |
( |
testCreateBackend |
| ) |
|
Only for testing purpose
Try creating a non existing backend
backend should not be in open state
check that the creation of different instances with the same map file
Definition at line 631 of file testDummyBackend.cpp.
◆ BOOST_AUTO_TEST_CASE() [5/16]
BOOST_AUTO_TEST_CASE |
( |
testDummyInterrupt |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/16]
BOOST_AUTO_TEST_CASE |
( |
testDummyInterruptCatalogue |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [7/16]
BOOST_AUTO_TEST_CASE |
( |
testFinalClosing |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [8/16]
BOOST_AUTO_TEST_CASE |
( |
testIsWriteRangeOverlap |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [9/16]
BOOST_AUTO_TEST_CASE |
( |
testOpen |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [10/16]
BOOST_AUTO_TEST_CASE |
( |
testOpenClose |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [11/16]
BOOST_AUTO_TEST_CASE |
( |
testReadOnly |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [12/16]
BOOST_AUTO_TEST_CASE |
( |
testReadWriteMultiWordRegister |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [13/16]
BOOST_AUTO_TEST_CASE |
( |
testReadWriteSingleWordRegister |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [14/16]
BOOST_AUTO_TEST_CASE |
( |
testWriteCallbackFunctions |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [15/16]
BOOST_AUTO_TEST_CASE |
( |
testWriteRegisterWithoutCallback |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [16/16]
BOOST_AUTO_TEST_CASE |
( |
testWriteToReadOnlyRegister |
| ) |
|