equal
deleted
inserted
replaced
21 #include "ut_logsdbconnector.h" |
21 #include "ut_logsdbconnector.h" |
22 #include "ut_logsreader.h" |
22 #include "ut_logsreader.h" |
23 #include "ut_logsreaderstates.h" |
23 #include "ut_logsreaderstates.h" |
24 #include "ut_logseventparser.h" |
24 #include "ut_logseventparser.h" |
25 #include "ut_logseventdataparser.h" |
25 #include "ut_logseventdataparser.h" |
26 #include "ut_logsforegroundwatcher.h" |
|
27 #include "testresultxmlparser.h" |
26 #include "testresultxmlparser.h" |
28 #include "ut_logsremove.h" |
27 #include "ut_logsremove.h" |
29 |
28 |
30 |
29 |
31 int main(int argc, char *argv[]) |
30 int main(int argc, char *argv[]) |
80 QStringList args_logsEventData( "ut_logsEventData"); |
79 QStringList args_logsEventData( "ut_logsEventData"); |
81 args_logsEventData << "-xml" << "-o" << resultFileName; |
80 args_logsEventData << "-xml" << "-o" << resultFileName; |
82 QT_TRAP_THROWING( QTest::qExec(&ut_logsEventData, args_logsEventData); ) |
81 QT_TRAP_THROWING( QTest::qExec(&ut_logsEventData, args_logsEventData); ) |
83 parser.parseAndPrintResults(resultFileName,true); |
82 parser.parseAndPrintResults(resultFileName,true); |
84 |
83 |
85 UT_LogsForegroundWatcher ut_logsForegroundWatcher; |
|
86 resultFileName = "c:/ut_logs_logsForegroundWatcher.xml"; |
|
87 QStringList args_logsForegroundWatcher( "ut_logsForegroundWatcher"); |
|
88 args_logsForegroundWatcher << "-xml" << "-o" << resultFileName; |
|
89 QT_TRAP_THROWING( QTest::qExec(&ut_logsForegroundWatcher, args_logsForegroundWatcher); ) |
|
90 parser.parseAndPrintResults(resultFileName,true); |
|
91 |
|
92 |
|
93 |
84 |
94 if (promptOnExit) { |
85 if (promptOnExit) { |
95 printf("Press any key...\n"); |
86 printf("Press any key...\n"); |
96 getchar(); |
87 getchar(); |
97 } |
88 } |