// // Copyright (c) ZeroC, Inc. All rights reserved. // #include #include #include using namespace std; class Client : public Test::TestHelper { public: void run(int, char**); }; void Client::run(int argc, char** argv) { Ice::PropertiesPtr properties = createTestProperties(argc, argv); properties->setProperty("Ice.Warn.Connections", "0"); // test aborts Ice::CommunicatorHolder ich = initialize(argc, argv, properties); vector ports; for(int i = 1; i < argc; ++i) { if(argv[i][0] == '-') { ostringstream os; os << "unknown option `" << argv[i] << "'"; throw invalid_argument(os.str()); } ports.push_back(atoi(argv[i])); } if(ports.empty()) { throw runtime_error("no ports specified"); } void allTests(Test::TestHelper*, const vector&); allTests(this, ports); } DEFINE_TEST(Client)