/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/SiStripObjects/test/UnitTests/MasterTestCondFormatsSiStripObjects.cpp
45 строк
2 KB
Shahzad Malik Muzaffar
[ALCA-DB] Applying code checks/format
03 окт 2024, 10:23
03 окт 2024, 10:23
42fbe13
Код
Авторство
О чём код?
/** * This file defines the executable that will run the tests. * * Author: M. De Mattia demattia@.pd.infn.it * * class description: * * * Version: $Id: MasterTestSiStripObjects.cpp,v 1.1 2010/01/18 12:26:26 demattia Exp $ */ // In case this does not work anymore uncomment the rest // #include <Utilities/Testing/interface/CppUnit_testdriver.icpp> #include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestResult.h> #include <cppunit/TestCaller.h> #include <cppunit/TestRunner.h> #include <cppunit/ui/text/TestRunner.h> #include <cppunit/TestResultCollector.h> #include <cppunit/TextTestProgressListener.h> #include <cppunit/CompilerOutputter.h> #include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/CompilerOutputter.h> // #include <cppunit/TextTestProgressListener.h> #include <cppunit/BriefTestProgressListener.h> /** * Main function used to run all tests. * We are not using the one in #include <Utilities/Testing/interface/CppUnit_testdriver.icpp> * because we use the BriefTestProgressListener to output the name of each test. */ int main(int argc, char* argv[]) { std::string testPath = (argc > 1) ? std::string(argv[1]) : ""; CppUnit::TextUi::TestRunner runner; CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry(); runner.addTest(registry.makeTest()); // Outputs the name of each test when it is executed. CppUnit::BriefTestProgressListener progress; runner.eventManager().addListener(&progress); runner.run(); }