ChimeraTK-DeviceAccess 03.25.00
Loading...
Searching...
No Matches
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 198 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( testIMR  )

Definition at line 381 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [1/40]

BOOST_FIXTURE_TEST_CASE ( activateIER  ,
Active0   
)

Definition at line 189 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [2/40]

BOOST_FIXTURE_TEST_CASE ( inactiveIER  ,
Inactive0   
)

Definition at line 150 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [3/40]

BOOST_FIXTURE_TEST_CASE ( testCieWriteable  ,
CieWritableTestFixture   
)

Definition at line 708 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [4/40]

BOOST_FIXTURE_TEST_CASE ( testGieActive  ,
GieActiveTestFixture   
)

Definition at line 504 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [5/40]

BOOST_FIXTURE_TEST_CASE ( testGieAndMer  ,
GieAndMerTestFixture   
)

Definition at line 630 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [6/40]

BOOST_FIXTURE_TEST_CASE ( testGieInactive  ,
GieInactiveTestFixture   
)

Definition at line 498 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [7/40]

BOOST_FIXTURE_TEST_CASE ( testGieWriteable  ,
GieWritableTestFixture   
)

Definition at line 687 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [8/40]

BOOST_FIXTURE_TEST_CASE ( testIAR  ,
IarTestFixture   
)

Definition at line 327 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [9/40]

BOOST_FIXTURE_TEST_CASE ( testIarAndIcr  ,
IarAndIcrTestFixture   
)

Definition at line 565 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [10/40]

BOOST_FIXTURE_TEST_CASE ( testIarWriteable  ,
IarWritableTestFixture   
)

Definition at line 673 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [11/40]

BOOST_FIXTURE_TEST_CASE ( testICR  ,
IcrTestFixture   
)

Definition at line 337 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [12/40]

BOOST_FIXTURE_TEST_CASE ( testIcrWriteable  ,
IcrWritableTestFixture   
)

Definition at line 666 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [13/40]

BOOST_FIXTURE_TEST_CASE ( testIerWriteable  ,
IerWritableTestFixture   
)

Definition at line 659 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [14/40]

BOOST_FIXTURE_TEST_CASE ( testISR  ,
IsrTestFixture   
)

Definition at line 318 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [15/40]

BOOST_FIXTURE_TEST_CASE ( testIsrReadable  ,
IsrReadableTestFixture   
)

Definition at line 644 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [16/40]

BOOST_FIXTURE_TEST_CASE ( testIsrWriteable  ,
IsrWritableTestFixture   
)

Definition at line 652 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [17/40]

BOOST_FIXTURE_TEST_CASE ( testJsonErrorInGeneralStructure  ,
InvalidJson1TestFixture   
)

Definition at line 537 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [18/40]

BOOST_FIXTURE_TEST_CASE ( testJsonErrorInIntcSprecific  ,
InvalidJson2TestFixture   
)

Definition at line 544 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [19/40]

BOOST_FIXTURE_TEST_CASE ( testMerActive  ,
MerActiveTestFixture   
)

Definition at line 376 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [20/40]

BOOST_FIXTURE_TEST_CASE ( testMerInactive  ,
MerInactiveTestFixture   
)

Definition at line 370 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [21/40]

BOOST_FIXTURE_TEST_CASE ( testMerWriteable  ,
MerWritableTestFixture   
)

Definition at line 694 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [22/40]

BOOST_FIXTURE_TEST_CASE ( testMieActive  ,
MieActiveTestFixture   
)

Definition at line 519 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [23/40]

BOOST_FIXTURE_TEST_CASE ( testMieAndGie  ,
MieAndGieTestFixture   
)

Definition at line 616 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [24/40]

BOOST_FIXTURE_TEST_CASE ( testMieAndMer  ,
MieAndMerTestFixture   
)

Definition at line 623 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [25/40]

BOOST_FIXTURE_TEST_CASE ( testMieGieAndMer  ,
MieGieAndMerTestFixture   
)

Definition at line 637 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [26/40]

BOOST_FIXTURE_TEST_CASE ( testMieInactive  ,
MieInactiveTestFixture   
)

Definition at line 513 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [27/40]

BOOST_FIXTURE_TEST_CASE ( testMieWriteable  ,
MieWritableTestFixture   
)

Definition at line 680 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [28/40]

BOOST_FIXTURE_TEST_CASE ( testNoIer  ,
NoIerTestFixture   
)

Definition at line 579 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [29/40]

BOOST_FIXTURE_TEST_CASE ( testNoIsr  ,
NoIsrTestFixture   
)

Definition at line 572 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [30/40]

BOOST_FIXTURE_TEST_CASE ( testNonexistendPath  ,
NonexistendPathTestFixture   
)

Definition at line 593 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [31/40]

BOOST_FIXTURE_TEST_CASE ( testNoPath  ,
NoPathTestFixture   
)

Definition at line 586 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [32/40]

BOOST_FIXTURE_TEST_CASE ( testOnlyCie  ,
OnlyCieTestFixture   
)

Definition at line 558 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [33/40]

BOOST_FIXTURE_TEST_CASE ( testOnlySie  ,
OnlySieTestFixture   
)

Definition at line 551 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [34/40]

BOOST_FIXTURE_TEST_CASE ( testSieCie  ,
Inactive5   
)

Definition at line 413 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [35/40]

BOOST_FIXTURE_TEST_CASE ( testSieCieMulti1  ,
Inactive5   
)

Definition at line 440 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [36/40]

BOOST_FIXTURE_TEST_CASE ( testSieCieMulti2  ,
Inactive5   
)

Definition at line 478 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [37/40]

BOOST_FIXTURE_TEST_CASE ( testSieWriteable  ,
SieWritableTestFixture   
)

Definition at line 701 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [38/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownMainKey  ,
UnknownMainKeyTestFixture   
)

Definition at line 609 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [39/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownOption  ,
UnknownOptionTestFixture   
)

Definition at line 530 of file testGenericMuxedInterruptDistributor.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [40/40]

BOOST_FIXTURE_TEST_CASE ( testUnknownVersion  ,
UnknownVersionTestFixture   
)

Definition at line 601 of file testGenericMuxedInterruptDistributor.cpp.

◆ readWithTimeout()

bool readWithTimeout ( VoidRegisterAccessor acc,
size_t  msTimeout = 3000 
)

Definition at line 18 of file testGenericMuxedInterruptDistributor.cpp.