This commit is contained in:
parent
2b472021c9
commit
867143bc0b
|
@ -15,10 +15,14 @@ using namespace std;
|
|||
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>";
|
||||
|
||||
extern static int tkScenario;
|
||||
|
||||
void doWork()
|
||||
{
|
||||
if (!tkScenario)
|
||||
init("etc/toolkit2.conf");
|
||||
else
|
||||
scenario(tkScenario);
|
||||
{
|
||||
TestEnvironment props;
|
||||
auto_ptr<Session> sess(SessionFactory::newInstance(&props));
|
||||
|
@ -75,6 +79,8 @@ void doWork()
|
|||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (argc > 1)
|
||||
tkScenario = atoi(argv[1]);
|
||||
TEST_run(doWork);
|
||||
return TEST_errorCount();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue