qt5base-lts/tests/auto/selftests
Jason McDonald 21776e9260 Fix errors in lightxml test logger
The newer test logger did not produce the same light XML output as the
logger that it replaced.  In particular, it did not output the <DataTag>
tag and it incorrectly nested a <Message> tag inside the <Incident> tag
when a fatal error occured in a test.

Unfortunately, it appears that the expected lightxml output for the
selftests was produced by running tests using the newer logger, while
the selftests did not use the older lightxml logger.  Thus the errors
were not detected by the selftests.

This commit adds the older lightxml logger to the selftests, updates the
expected test data accordingly, and modifies the newer lightxml logger
to behave correctly.  This last item is achieved by making the lightxml
streamer copy most of the code from the xml streamer -- lightxml output
is supposed to be same as xml, except for the omission of the root and
<TestCase> tags.

Change-Id: Ie6e1f69dd6000df2b9d0c5c8e2109fe7bbff3956
Reviewed-on: http://codereview.qt.nokia.com/3902
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-08-31 07:40:06 +02:00
..
alive tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
assert tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
badxml tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibcallgrind tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibeventcounter tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchliboptions tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibtickcounter tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
benchlibwalltime tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
cmptest tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
commandlinedata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
crashes tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
datatable tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
datetime tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
differentexec tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
exceptionthrow tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
expectfail tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
failinit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
failinitdata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
fetchbogus tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
globaldata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
longstring tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
maxwarnings tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
multiexec tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
qexecstringlist tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
singleskip tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skip tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipglobal tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipinit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
skipinitdata tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
sleep tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
strcmp tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
subtest tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
test tests: fix private header inclusion in qtbase autotests 2011-05-11 17:04:19 +10:00
waitwithoutgui tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
warnings tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
xunit tests: do not run the testlib selftest helpers during `make check' 2011-07-19 13:11:40 +02:00
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_alive.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_assert.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_assert.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_assert.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_assert.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_badxml.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_badxml.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_badxml.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_badxml.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_benchlibcallgrind.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibcallgrind.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_benchlibeventcounter.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibeventcounter.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchliboptions.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchliboptions.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchlibtickcounter.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibtickcounter.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_benchlibwalltime.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_benchlibwalltime.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_cmptest.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_cmptest.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_cmptest.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_cmptest.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_commandlinedata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_commandlinedata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_1.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_2.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes_3.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_crashes.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_crashes.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_crashes.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_datatable.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datatable.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_datetime.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_datetime.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_differentexec.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_exceptionthrow.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_exceptionthrow.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_expectfail.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_expectfail.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_failinit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_failinitdata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fatal.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_fetchbogus.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_fetchbogus.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_globaldata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_globaldata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_longstring.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_longstring.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_longstring.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_longstring.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_maxwarnings.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_maxwarnings.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_maxwarnings.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_maxwarnings.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_multiexec.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_multiexec.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_qexecstringlist.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_singleskip.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_singleskip.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skip.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_skip.txt Updated version references in autotests 2011-05-13 15:38:50 +03:00
expected_skip.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skip.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipglobal.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_skipinit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_skipinitdata.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_sleep.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_sleep.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_strcmp.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_strcmp.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.lightxml Make lightxml and xml log formatting consistent 2011-08-31 07:39:54 +02:00
expected_subtest.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_subtest.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.lightxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_waitwithoutgui.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_warnings.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_warnings.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.lightxml Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
expected_xunit.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.xml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
expected_xunit.xunitxml Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
selftests.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
selftests.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_selftests.cpp Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00