equal
deleted
inserted
replaced
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 |
|
18 #include "testrunner.h" |
|
19 |
|
20 #include "ut_mobcntmodel.h" |
|
21 |
|
22 #include <QtTest/QtTest> |
|
23 |
|
24 int main(int argc, char *argv[]) |
|
25 { |
|
26 bool promptOnExit(true); |
|
27 for (int i=0; i<argc; i++) { |
|
28 if (QString(argv[i]) == "-noprompt") |
|
29 promptOnExit = false; |
|
30 } |
|
31 printf("Running tests...\n"); |
|
32 |
|
33 QApplication app(argc, argv); |
|
34 |
|
35 TestRunner testRunner("ut_mobcntmodel"); |
|
36 |
|
37 TestMobCntModel ut_MobCntModel; |
|
38 testRunner.runTests(ut_MobCntModel); |
|
39 |
|
40 testRunner.printResults(); |
|
41 |
|
42 if (promptOnExit) { |
|
43 printf("Press any key...\n"); |
|
44 getchar(); |
|
45 } |
|
46 return 0; |
|
47 } |
|
48 |
|