ChimeraTK-DeviceAccess  03.18.00
testGenericMuxedInterruptDistributor.cpp File Reference
#include "Device.h"
#include "DummyBackend.h"
#include "DummyRegisterAccessor.h"
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <thread>
+ Include dependency graph for testGenericMuxedInterruptDistributor.cpp:

Go to the source code of this file.

Classes

class  WriteMonitoringBackend
 
class  BackendRegisterer
 
struct  TestFixture
 
struct  ThrowTestFixture
 Test that a logic error is thrown as soon as you try to get an accessor with invalid map file entries. More...
 
struct  Inactive0
 
struct  Active0
 
struct  AcknowledgeTest
 
struct  IsrTestFixture
 
struct  IarTestFixture
 
struct  IcrTestFixture
 
struct  MasterEnableTest
 
struct  MerInactiveTestFixture
 
struct  MerActiveTestFixture
 
struct  Inactive5
 
struct  GieInactiveTestFixture
 
struct  GieActiveTestFixture
 
struct  MieInactiveTestFixture
 
struct  MieActiveTestFixture
 
struct  UnknownOptionTestFixture
 
struct  InvalidJson1TestFixture
 
struct  InvalidJson2TestFixture
 
struct  OnlySieTestFixture
 
struct  OnlyCieTestFixture
 
struct  IarAndIcrTestFixture
 
struct  NoIsrTestFixture
 
struct  NoIerTestFixture
 
struct  NoPathTestFixture
 
struct  NonexistendPathTestFixture
 
struct  UnknownVersionTestFixture
 
struct  UnknownMainKeyTestFixture
 
struct  MieAndGieTestFixture
 
struct  MieAndMerTestFixture
 
struct  GieAndMerTestFixture
 
struct  MieGieAndMerTestFixture
 
struct  IsrReadableTestFixture
 
struct  IsrWritableTestFixture
 
struct  IerWritableTestFixture
 
struct  IcrWritableTestFixture
 
struct  IarWritableTestFixture
 
struct  MieWritableTestFixture
 
struct  GieWritableTestFixture
 
struct  MerWritableTestFixture
 
struct  SieWritableTestFixture
 
struct  CieWritableTestFixture
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   GenericMuxedInterruptDistributorTest
 

Functions

bool readWithTimeout (VoidRegisterAccessor &acc, size_t msTimeout=3000)
 
 BOOST_FIXTURE_TEST_CASE (inactiveIER, Inactive0)
 
 BOOST_FIXTURE_TEST_CASE (activateIER, Active0)
 
 BOOST_AUTO_TEST_CASE (activateOnActiveDomain)
 
 BOOST_FIXTURE_TEST_CASE (testISR, IsrTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIAR, IarTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testICR, IcrTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMerInactive, MerInactiveTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMerActive, MerActiveTestFixture)
 
 BOOST_AUTO_TEST_CASE (testIMR)
 
 BOOST_FIXTURE_TEST_CASE (testSieCie, Inactive5)
 
 BOOST_FIXTURE_TEST_CASE (testSieCieMulti1, Inactive5)
 
 BOOST_FIXTURE_TEST_CASE (testSieCieMulti2, Inactive5)
 
 BOOST_FIXTURE_TEST_CASE (testGieInactive, GieInactiveTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testGieActive, GieActiveTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieInactive, MieInactiveTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieActive, MieActiveTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testUnknownOption, UnknownOptionTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testJsonErrorInGeneralStructure, InvalidJson1TestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testJsonErrorInIntcSprecific, InvalidJson2TestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testOnlySie, OnlySieTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testOnlyCie, OnlyCieTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIarAndIcr, IarAndIcrTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testNoIsr, NoIsrTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testNoIer, NoIerTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testNoPath, NoPathTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testNonexistendPath, NonexistendPathTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testUnknownVersion, UnknownVersionTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testUnknownMainKey, UnknownMainKeyTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieAndGie, MieAndGieTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieAndMer, MieAndMerTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testGieAndMer, GieAndMerTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieGieAndMer, MieGieAndMerTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIsrReadable, IsrReadableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIsrWriteable, IsrWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIerWriteable, IerWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIcrWriteable, IcrWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testIarWriteable, IarWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMieWriteable, MieWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testGieWriteable, GieWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testMerWriteable, MerWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testSieWriteable, SieWritableTestFixture)
 
 BOOST_FIXTURE_TEST_CASE (testCieWriteable, CieWritableTestFixture)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 4 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   GenericMuxedInterruptDistributorTest

Definition at line 5 of file testGenericMuxedInterruptDistributor.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( activateOnActiveDomain  )

Definition at line 192 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( testIMR  )

Definition at line 375 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/40]

BOOST_FIXTURE_TEST_CASE ( activateIER  ,
Active0   
)

Definition at line 183 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/40]

BOOST_FIXTURE_TEST_CASE ( inactiveIER  ,
Inactive0   
)

Definition at line 144 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/40]

BOOST_FIXTURE_TEST_CASE ( testCieWriteable  ,
CieWritableTestFixture   
)

Definition at line 702 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [4/40]

BOOST_FIXTURE_TEST_CASE ( testGieActive  ,
GieActiveTestFixture   
)

Definition at line 498 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [5/40]

BOOST_FIXTURE_TEST_CASE ( testGieAndMer  ,
GieAndMerTestFixture   
)

Definition at line 624 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [6/40]

BOOST_FIXTURE_TEST_CASE ( testGieInactive  ,
GieInactiveTestFixture   
)

Definition at line 492 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [7/40]

BOOST_FIXTURE_TEST_CASE ( testGieWriteable  ,
GieWritableTestFixture   
)

Definition at line 681 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [8/40]

BOOST_FIXTURE_TEST_CASE ( testIAR  ,
IarTestFixture   
)

Definition at line 321 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [9/40]

BOOST_FIXTURE_TEST_CASE ( testIarAndIcr  ,
IarAndIcrTestFixture   
)

Definition at line 559 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [10/40]

BOOST_FIXTURE_TEST_CASE ( testIarWriteable  ,
IarWritableTestFixture   
)

Definition at line 667 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [11/40]

BOOST_FIXTURE_TEST_CASE ( testICR  ,
IcrTestFixture   
)

Definition at line 331 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [12/40]

BOOST_FIXTURE_TEST_CASE ( testIcrWriteable  ,
IcrWritableTestFixture   
)

Definition at line 660 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [13/40]

BOOST_FIXTURE_TEST_CASE ( testIerWriteable  ,
IerWritableTestFixture   
)

Definition at line 653 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [14/40]

BOOST_FIXTURE_TEST_CASE ( testISR  ,
IsrTestFixture   
)

Definition at line 312 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [15/40]

BOOST_FIXTURE_TEST_CASE ( testIsrReadable  ,
IsrReadableTestFixture   
)

Definition at line 638 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [16/40]

BOOST_FIXTURE_TEST_CASE ( testIsrWriteable  ,
IsrWritableTestFixture   
)

Definition at line 646 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [17/40]

BOOST_FIXTURE_TEST_CASE ( testJsonErrorInGeneralStructure  ,
InvalidJson1TestFixture   
)

Definition at line 531 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [18/40]

BOOST_FIXTURE_TEST_CASE ( testJsonErrorInIntcSprecific  ,
InvalidJson2TestFixture   
)

Definition at line 538 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [19/40]

BOOST_FIXTURE_TEST_CASE ( testMerActive  ,
MerActiveTestFixture   
)

Definition at line 370 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [20/40]

BOOST_FIXTURE_TEST_CASE ( testMerInactive  ,
MerInactiveTestFixture   
)

Definition at line 364 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [21/40]

BOOST_FIXTURE_TEST_CASE ( testMerWriteable  ,
MerWritableTestFixture   
)

Definition at line 688 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [22/40]

BOOST_FIXTURE_TEST_CASE ( testMieActive  ,
MieActiveTestFixture   
)

Definition at line 513 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [23/40]

BOOST_FIXTURE_TEST_CASE ( testMieAndGie  ,
MieAndGieTestFixture   
)

Definition at line 610 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [24/40]

BOOST_FIXTURE_TEST_CASE ( testMieAndMer  ,
MieAndMerTestFixture   
)

Definition at line 617 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [25/40]

BOOST_FIXTURE_TEST_CASE ( testMieGieAndMer  ,
MieGieAndMerTestFixture   
)

Definition at line 631 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [26/40]

BOOST_FIXTURE_TEST_CASE ( testMieInactive  ,
MieInactiveTestFixture   
)

Definition at line 507 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [27/40]

BOOST_FIXTURE_TEST_CASE ( testMieWriteable  ,
MieWritableTestFixture   
)

Definition at line 674 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [28/40]

BOOST_FIXTURE_TEST_CASE ( testNoIer  ,
NoIerTestFixture   
)

Definition at line 573 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [29/40]

BOOST_FIXTURE_TEST_CASE ( testNoIsr  ,
NoIsrTestFixture   
)

Definition at line 566 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [30/40]

BOOST_FIXTURE_TEST_CASE ( testNonexistendPath  ,
NonexistendPathTestFixture   
)

Definition at line 587 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [31/40]

BOOST_FIXTURE_TEST_CASE ( testNoPath  ,
NoPathTestFixture   
)

Definition at line 580 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [32/40]

BOOST_FIXTURE_TEST_CASE ( testOnlyCie  ,
OnlyCieTestFixture   
)

Definition at line 552 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [33/40]

BOOST_FIXTURE_TEST_CASE ( testOnlySie  ,
OnlySieTestFixture   
)

Definition at line 545 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [34/40]

BOOST_FIXTURE_TEST_CASE ( testSieCie  ,
Inactive5   
)

Definition at line 407 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [35/40]

BOOST_FIXTURE_TEST_CASE ( testSieCieMulti1  ,
Inactive5   
)

Definition at line 434 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [36/40]

BOOST_FIXTURE_TEST_CASE ( testSieCieMulti2  ,
Inactive5   
)

Definition at line 472 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [37/40]

BOOST_FIXTURE_TEST_CASE ( testSieWriteable  ,
SieWritableTestFixture   
)

Definition at line 695 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [38/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownMainKey  ,
UnknownMainKeyTestFixture   
)

Definition at line 603 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [39/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownOption  ,
UnknownOptionTestFixture   
)

Definition at line 524 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [40/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownVersion  ,
UnknownVersionTestFixture   
)

Definition at line 595 of file testGenericMuxedInterruptDistributor.cpp.

◆ readWithTimeout()

bool readWithTimeout ( VoidRegisterAccessor acc,
size_t  msTimeout = 3000 
)

Definition at line 18 of file testGenericMuxedInterruptDistributor.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: