|
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 <QtTest/QtTest> |
|
18 #include "ut_vmbxcpplugin.h" |
|
19 #include "ut_vmbxuiengine.h" |
|
20 |
|
21 // ----------------------------------------------------------------------------- |
|
22 // main() |
|
23 // Main method implemented for directing test output to a file. |
|
24 // ----------------------------------------------------------------------------- |
|
25 int main(int argc, char *argv[]) |
|
26 { |
|
27 qDebug("main() >"); |
|
28 |
|
29 QApplication app(argc, argv); |
|
30 |
|
31 qDebug("ut_vmbxuiengine"); |
|
32 Ut_VmbxUiEngine tcUiEngine; |
|
33 char *pass[3]; |
|
34 pass[0] = argv[0]; |
|
35 pass[1] = "-o"; |
|
36 pass[2] = "c:\\logs\\vmbx\\ut_vmbxuiengine.txt"; |
|
37 int result = QTest::qExec(&tcUiEngine, 3, pass); |
|
38 qDebug("ut_vmbxuiengine result %d", result); |
|
39 |
|
40 |
|
41 qDebug("ut_vmbxcpplugin"); |
|
42 Ut_vmbxCpPlugin tcCpPlugin; |
|
43 pass[2] = "c:\\logs\\vmbx\\ut_vmbxcpplugin.txt"; |
|
44 result = QTest::qExec(&tcCpPlugin, 3, pass); |
|
45 qDebug("ut_vmbxcpplugin result=%d", result); |
|
46 |
|
47 |
|
48 qDebug("main() <"); |
|
49 return result; |
|
50 } |
|
51 //End of file |