vmbx/vmbxengine/tsrc/ut_vmbxengine/src/main.cpp
changeset 19 e44a8c097b15
child 27 7eb70891911c
equal deleted inserted replaced
15:d7fc66ccd6fb 19:e44a8c097b15
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #include <e32base.h>
       
    18 #include <QObject>
       
    19 #include <QtTest/QtTest>
       
    20 #include "ut_vmbxengine.h"
       
    21 #include "ut_pbkstore.h"
       
    22 #include "ut_simhandler.h"
       
    23 
       
    24 int main(int argc, char *argv[])
       
    25 {
       
    26     qDebug("main() IN");
       
    27     CTrapCleanup* cleanup = CTrapCleanup::New();
       
    28     QApplication app(argc, argv);
       
    29     
       
    30     qDebug("testing start...");
       
    31     
       
    32     // API tester
       
    33     Ut_VmbxEngine tc1;
       
    34     char *pass[3];  
       
    35     pass[0] = argv[0];
       
    36     pass[1] = "-o"; 
       
    37     pass[2] = "c:\\logs\\vmbx\\ut_vmbxengine.txt";
       
    38     int result = -1;
       
    39     result = QTest::qExec(&tc1, 3, pass);
       
    40     qDebug("ut_vmbxengine result=%d", result);
       
    41     
       
    42     Ut_PbkStore tc2;
       
    43     pass[2] = "c:\\logs\\vmbx\\ut_pbkstore.txt";
       
    44     result = QTest::qExec(&tc2, 3, pass);
       
    45     qDebug("Ut_PbkStore result=%d", result);
       
    46     
       
    47     // SIM can not be handled in Emulator.
       
    48     // Root cause: CVmbxSimHandler::ConstructL()
       
    49 //    Ut_SimHandler tc3;
       
    50 //    pass[2] = "c:\\logs\\vmbx\\ut_simhandler.txt";
       
    51 //    result = QTest::qExec(&tc3, 3, pass);
       
    52 //    qDebug("Ut_SimHandler result=%d", result);
       
    53     
       
    54     qDebug("testing end...");
       
    55     qDebug("main() OUT");
       
    56     delete cleanup;
       
    57     cleanup = NULL;
       
    58     return result;
       
    59 }
       
    60