equal
deleted
inserted
replaced
|
1 #include <e32base.h> |
|
2 #include <QObject> |
|
3 #include <QtTest/QtTest> |
|
4 #include "ut_vmbxengine.h" |
|
5 #include "ut_pbkstore.h" |
|
6 #include "ut_simhandler.h" |
|
7 |
|
8 int main(int argc, char *argv[]) |
|
9 { |
|
10 qDebug("main() IN"); |
|
11 // CTrapCleanup* cleanup = CTrapCleanup::New(); |
|
12 QCoreApplication app(argc, argv); |
|
13 |
|
14 qDebug("testing start..."); |
|
15 |
|
16 // API tester |
|
17 int result = -1; |
|
18 char *pass[3]; |
|
19 pass[0] = argv[0]; |
|
20 pass[1] = "-o"; |
|
21 |
|
22 Ut_VmbxEngine tc1; |
|
23 pass[2] = "c:\\logs\\vmbx\\ut_vmbxengine.txt"; |
|
24 result = QTest::qExec(&tc1, 3, pass); |
|
25 qDebug("ut_vmbxengine result=%d", result); |
|
26 |
|
27 Ut_PbkStore tc2; |
|
28 pass[2] = "c:\\logs\\vmbx\\ut_pbkstore.txt"; |
|
29 result = QTest::qExec(&tc2, 3, pass); |
|
30 qDebug("Ut_PbkStore result=%d", result); |
|
31 |
|
32 // SIM can not be handled in Emulator. |
|
33 // Root cause: CVmbxSimHandler::ConstructL() |
|
34 // Ut_SimHandler tc3; |
|
35 // pass[2] = "c:\\logs\\vmbx\\ut_simhandler.txt"; |
|
36 // result = QTest::qExec(&tc3, 3, pass); |
|
37 // qDebug("Ut_SimHandler result=%d", result); |
|
38 |
|
39 qDebug("testing end..."); |
|
40 qDebug("main() OUT"); |
|
41 // delete cleanup; |
|
42 // cleanup = NULL; |
|
43 return result; |
|
44 } |
|
45 |