1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
// RegressionTest.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include <tchar.h>
#include "ZenLib/Ztring.h"
#include "RegressionTest/RegressionTest.h"
using namespace std;
using namespace ZenLib;
int _tmain(int argc, _TCHAR* argv[])
{
if (argc<4)
return 1;
Ztring Files=argv[1];
Ztring DataBaseDirectory=argv[2];
int32u Scenario=Ztring(argv[3]).To_int32u();
bool Flag_All=true, Flag_Basic=false, Flag_Events=false, Flag_Md5=false;
for (int Pos=3; Pos<argc; Pos++)
{
if (Ztring(argv[Pos]).Compare(__T("Basic")))
{
Flag_All=false;
Flag_Basic=true;
}
if (Ztring(argv[Pos]).Compare(__T("Events")))
{
Flag_All=false;
Flag_Events=true;
}
if (Ztring(argv[Pos]).Compare(__T("Md5")))
{
Flag_All=false;
Flag_Md5=true;
}
}
if (Flag_All || Flag_Basic)
{
cout<<"Basic"<<endl;
RegressionTest_Basic(Files, DataBaseDirectory, Scenario);
}
if (Flag_All || Flag_Events)
{
cout<<"Events"<<endl;
RegressionTest_Events(Files, DataBaseDirectory, Scenario);
}
if (Flag_All || Flag_Md5)
{
cout<<"Md5"<<endl;
RegressionTest_Md5(Files, DataBaseDirectory, Scenario);
}
return 0;
}
|