This commit is contained in:
Ren RenJuan 2014-01-10 20:19:20 +00:00
parent 2b472021c9
commit 867143bc0b
1 changed files with 6 additions and 0 deletions

View File

@ -15,10 +15,14 @@ using namespace std;
static std::string TEST_SE = static std::string TEST_SE =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\"><hello/></epp>"; "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd\"><hello/></epp>";
extern static int tkScenario;
void doWork() void doWork()
{ {
if (!tkScenario)
init("etc/toolkit2.conf"); init("etc/toolkit2.conf");
else
scenario(tkScenario);
{ {
TestEnvironment props; TestEnvironment props;
auto_ptr<Session> sess(SessionFactory::newInstance(&props)); auto_ptr<Session> sess(SessionFactory::newInstance(&props));
@ -75,6 +79,8 @@ void doWork()
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
if (argc > 1)
tkScenario = atoi(argv[1]);
TEST_run(doWork); TEST_run(doWork);
return TEST_errorCount(); return TEST_errorCount();
} }