File indexing completed on 2024-04-06 12:31:46
0001 #include "Utilities/StorageFactory/test/Test.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003
0004 int main(int, char** ) try {
0005 initTest();
0006
0007 using namespace edm::storage;
0008 bool exists = StorageFactory::get()->check("http://home.web.cern.ch");
0009
0010 std::cout << "exists = " << exists << "\n";
0011 std::cout << "stats:\n" << StorageAccount::summaryText() << std::endl;
0012 return EXIT_SUCCESS;
0013 } catch (cms::Exception const& e) {
0014 std::cerr << e.explainSelf() << std::endl;
0015 return EXIT_FAILURE;
0016 } catch (std::exception const& e) {
0017 std::cerr << e.what() << std::endl;
0018 return EXIT_FAILURE;
0019 }