ChimeraTK-DeviceAccess  03.18.00
testUtilities.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "BackendFactory.h"
#include "DeviceInfoMap.h"
#include "Exception.h"
#include "SupportedUserTypes.h"
#include "Utilities.h"
#include <cstdint>
#include <limits>
+ Include dependency graph for testUtilities.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   DeviceTest
 
#define VALID_SDM   "sdm://./pci:pcieunidummys6;undefined"
 
#define VALID_SDM_WITH_PARAMS   "sdm://./dummy=goodMapFile.map"
 
#define INVALID_SDM   "://./pci:pcieunidummys6;"
 
#define INVALID_SDM_2   "sdm://./pci:pcieunidummys6;;"
 
#define INVALID_SDM_3   "sdm://./pci::pcieunidummys6;"
 
#define INVALID_SDM_4   "sdm://./dummy=goodMapFile.map=MapFile.map"
 
#define INVALID_SDM_5   "sdm://.pci:pcieunidummys6;"
 
#define VALID_PCI_STRING   "/dev/mtcadummys0"
 
#define VALID_DUMMY_STRING   "testfile.map"
 
#define VALID_DUMMY_STRING_2   "testfile.mapp"
 
#define INVALID_DEVICE_STRING   "/mtcadummys0"
 
#define INVALID_DEVICE_STRING_2   "/dev"
 
#define INVALID_DEVICE_STRING_3   "testfile.mappp"
 

Functions

 BOOST_AUTO_TEST_CASE (testParseCDD)
 
 BOOST_AUTO_TEST_CASE (testParseSdm)
 
 BOOST_AUTO_TEST_CASE (testParseDeviceString)
 
 BOOST_AUTO_TEST_CASE (testcountOccurence)
 
 BOOST_AUTO_TEST_CASE (testIsSdm)
 
 BOOST_AUTO_TEST_CASE (testAliasLookUp)
 
 BOOST_AUTO_TEST_CASE (testgetAliasList)
 
 BOOST_AUTO_TEST_CASE (testUserTypeToUserType_Boolean)
 
 BOOST_AUTO_TEST_CASE (testUserTypeToUserType_HexString)
 
 BOOST_AUTO_TEST_CASE (testUserTypeToUserType_DecString)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 4 of file testUtilities.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   DeviceTest

Definition at line 5 of file testUtilities.cpp.

◆ INVALID_DEVICE_STRING

#define INVALID_DEVICE_STRING   "/mtcadummys0"

Definition at line 27 of file testUtilities.cpp.

◆ INVALID_DEVICE_STRING_2

#define INVALID_DEVICE_STRING_2   "/dev"

Definition at line 28 of file testUtilities.cpp.

◆ INVALID_DEVICE_STRING_3

#define INVALID_DEVICE_STRING_3   "testfile.mappp"

Definition at line 29 of file testUtilities.cpp.

◆ INVALID_SDM

#define INVALID_SDM   "://./pci:pcieunidummys6;"

Definition at line 19 of file testUtilities.cpp.

◆ INVALID_SDM_2

#define INVALID_SDM_2   "sdm://./pci:pcieunidummys6;;"

Definition at line 20 of file testUtilities.cpp.

◆ INVALID_SDM_3

#define INVALID_SDM_3   "sdm://./pci::pcieunidummys6;"

Definition at line 21 of file testUtilities.cpp.

◆ INVALID_SDM_4

#define INVALID_SDM_4   "sdm://./dummy=goodMapFile.map=MapFile.map"

Definition at line 22 of file testUtilities.cpp.

◆ INVALID_SDM_5

#define INVALID_SDM_5   "sdm://.pci:pcieunidummys6;"

Definition at line 23 of file testUtilities.cpp.

◆ VALID_DUMMY_STRING

#define VALID_DUMMY_STRING   "testfile.map"

Definition at line 25 of file testUtilities.cpp.

◆ VALID_DUMMY_STRING_2

#define VALID_DUMMY_STRING_2   "testfile.mapp"

Definition at line 26 of file testUtilities.cpp.

◆ VALID_PCI_STRING

#define VALID_PCI_STRING   "/dev/mtcadummys0"

Definition at line 24 of file testUtilities.cpp.

◆ VALID_SDM

#define VALID_SDM   "sdm://./pci:pcieunidummys6;undefined"

Definition at line 17 of file testUtilities.cpp.

◆ VALID_SDM_WITH_PARAMS

#define VALID_SDM_WITH_PARAMS   "sdm://./dummy=goodMapFile.map"

Definition at line 18 of file testUtilities.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( testAliasLookUp  )

Definition at line 216 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( testcountOccurence  )

Definition at line 200 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( testgetAliasList  )

Definition at line 225 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( testIsSdm  )

Definition at line 208 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( testParseCDD  )

Definition at line 35 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( testParseDeviceString  )

Definition at line 183 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( testParseSdm  )

Definition at line 157 of file testUtilities.cpp.

+ Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( testUserTypeToUserType_Boolean  )

Definition at line 249 of file testUtilities.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( testUserTypeToUserType_DecString  )

Definition at line 365 of file testUtilities.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( testUserTypeToUserType_HexString  )

Definition at line 271 of file testUtilities.cpp.