Generic hardware access library
|
00001 #include "VMEAddressTableTester.hh" 00002 #include "VME64xAddressTableASCIIReaderTester.hh" 00003 #include "XMLAddressTableTester.hh" 00004 #include "PollItemCommandTester.hh" 00005 #include "TestMaster.hh" 00006 #include "VMEConfigurationSpaceHandlerTester.hh" 00007 #include "VMEConfigurationSpaceAddressReaderTester.hh" 00008 #include "VME64xMappedWindowTesterStandard.hh" 00009 #include "VME64xFunctionTesterStandard.hh" 00010 #include "VME64xCrateTester.hh" 00011 #include "VME64xMixedCrateTester.hh" 00012 00013 #define MODULE_MAP_FILE "ModuleMapperFile.dat" 00014 #define ADDERSSTABLE_CONTAINER_FILE "AddressTableMap.dat" 00015 #define CONFIGSPACE_MAP "configSpace.dat" 00016 #define STATIC_CONFIGURATION_FILE "StaticConfiguration.dat" 00017 00018 int main() { 00019 00020 try { 00021 HAL::TestMaster tester; 00022 HAL::VME64xCrateTester vme64xCrateTester(CONFIGSPACE_MAP, 00023 MODULE_MAP_FILE, 00024 ADDERSSTABLE_CONTAINER_FILE); 00025 00026 tester.registerTester( vme64xCrateTester ); 00027 00028 tester.doTest(); 00029 std::cout << "\n\n\nLong test report:\n"; 00030 tester.printLongReport(); 00031 std::cout << "\n\n\nShort test report:\n"; 00032 tester.printShortReport(); 00033 } catch (HAL::HardwareAccessException& e) { 00034 std::cout << "UNEXPECTED Exeption : " << std::endl; 00035 std::cout << e.what() << std::endl; 00036 } 00037 }