vmbx/vmbxcpplugin/tsrc/src/main.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:07:16 +0300
changeset 27 7eb70891911c
parent 19 e44a8c097b15
child 32 1f002146abb4
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

#include <QtTest/QtTest>
#include "ut_vmbxcpplugin.h"
#include "ut_vmbxuiengine.h"

// -----------------------------------------------------------------------------
// main()
// Main method implemented for directing test output to a file.
// -----------------------------------------------------------------------------
int main(int argc, char *argv[])
    {
    qDebug("main() >");
    
    //TODO: wk18 QApplication can not be created will casue crash.
    //QApplication app(argc, argv);

    qDebug("ut_vmbxuiengine");
    Ut_VmbxUiEngine tcUiEngine; 
    char *pass[3];
    pass[0] = argv[0];
    pass[1] = "-o"; 
    pass[2] = "c:\\logs\\vmbx\\ut_vmbxuiengine.txt";
    int result = QTest::qExec(&tcUiEngine, 3, pass);
    qDebug("ut_vmbxuiengine result %d", result);

    qDebug("ut_vmbxcpplugin");
    Ut_vmbxCpPlugin tcCpPlugin;
    pass[2] = "c:\\logs\\vmbx\\ut_vmbxcpplugin.txt";
    result = QTest::qExec(&tcCpPlugin, 3, pass);
    qDebug("ut_vmbxcpplugin result=%d", result);
    
    qDebug("main() <");
    return result;
    }
//End of file