#include <cppunit/CompilerOutputter.h>#include <cppunit/XmlOutputter.h>#include <cppunit/extensions/TestFactoryRegistry.h>#include <cppunit/ui/text/TestRunner.h>#include <hepnos.hpp>hepnos::DataStore*datastore;intmain(intargc,char*argv[]){if(argc!=2)return1;// Create the datastoredatastore=newhepnos::DataStore(argv[1]);// Get the top level suite from the registryCppUnit::Test*suite=CppUnit::TestFactoryRegistry::getRegistry().makeTest();// Adds the test to the list of test to runCppUnit::TextUi::TestRunnerrunner;runner.addTest(suite);// Change the default outputter to a compiler error format outputterrunner.setOutputter(newCppUnit::XmlOutputter(&runner.result(),std::cerr));// Run the tests.boolwasSucessful=runner.run();datastore->shutdown();deletedatastore;// Return error code 1 if the one of test failed.returnwasSucessful?0:1;}