contacts_plat/presence_cache_api/tsrc/mt_preseceqt/start.cpp
changeset 46 efe85016a067
child 81 640d30f4fb64
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
       
     1 /*
       
     2 * Copyright (c) 2007, 2008 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:  Implementation for presence cache reader and writer.
       
    15 *
       
    16 */
       
    17 #include "entitytests.h"
       
    18 #include <qtest.h>
       
    19 #include <stdio.h>
       
    20 
       
    21 #include <qdebug.h>
       
    22 #include <qsqldatabase.h>
       
    23 #include <qfile.h>
       
    24 
       
    25 
       
    26 //QTEST_MAIN(TestOfTest);
       
    27 int main(int argc, char *argv[])
       
    28 {
       
    29     bool promptOnExit(0);
       
    30     for (int i=0; i<argc; i++) {
       
    31         if (QString(argv[i]) == "-noprompt")
       
    32             promptOnExit = false;
       
    33     }
       
    34     printf("Running tests...\n");
       
    35 
       
    36     QApplication app(argc, argv);
       
    37 
       
    38     QString entityTestsFileName = "c:/testPresence_qt.xml";
       
    39    
       
    40     QStringList args( "entitytests");
       
    41     args << "-xml" << "-o" << entityTestsFileName;
       
    42     EntityTests et;
       
    43     QTest::qExec(&et, args);
       
    44 
       
    45     if (promptOnExit) {
       
    46         printf("Press any key...\n");
       
    47         getchar();
       
    48     }
       
    49     return 0;
       
    50 }