qt5base-lts/tests/auto/testlib/selftests
Edward Welbourne 8c52f8cbf5 Rename command-option to generate_expected_output.py
The --skip-benchlib option was misnamed: there are several benchlib
tests, of which it only skipped the callgrind one. As there is no
other test involving callgrind, rename to --skip-callgrind.

Change-Id: I0179fd35dd79c525f79e4a28a626e964323409bf
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2021-10-01 19:24:31 +02:00
..
assert Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
badxml Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibcallgrind Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibcounting Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibeventcounter Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchliboptions Fix compiler warnings from int/size_t mismatches 2021-04-28 06:48:43 +02:00
benchlibtickcounter Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
benchlibwalltime Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
blacklisted Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
cmptest QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
commandlinedata Fix compiler warnings from int/size_t mismatches 2021-04-28 06:48:43 +02:00
counting Tidy up in counting, skip and skipinit selftests 2021-09-09 20:42:35 +02:00
crashes Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
datatable Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
datetime Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
deleteLater Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
deleteLater_noApp Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
differentexec Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
exceptionthrow Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
expectfail Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
failcleanup Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
faildatatype Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failfetchtype Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failinit Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
failinitdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
fetchbogus Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
findtestdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
float Update float16 part of TestLib selftest 2021-07-28 21:26:55 +02:00
globaldata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
junit testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
keyboard Fix testlib/tst_selftests::keyboard on Wayland 2021-03-09 07:42:50 +01:00
longstring Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
maxwarnings Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
mouse Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
multiexec Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
pairdiagnostics Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
pass Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
patches Fix Catch2 compiling for INTEGRITY 2021-09-14 21:18:07 +03:00
printdatatags Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
printdatatagswithglobaltags Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qexecstringlist Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
signaldumper Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
silent testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
singleskip Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skip Tidy up in counting, skip and skipinit selftests 2021-09-09 20:42:35 +02:00
skipcleanup Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
skipinit Tidy up in counting, skip and skipinit selftests 2021-09-09 20:42:35 +02:00
skipinitdata Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
sleep Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
strcmp Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
subtest Avoid senseless duplication of code in a testlib selftest 2021-09-01 17:11:43 +02:00
testlib Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
tuplediagnostics Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verbose1 Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verbose2 Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
verifyexceptionthrown Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
warnings Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
watchdog Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
.gitignore
CATCH_LICENSE.txt Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch_p_p.h Fix Catch2 compiling for INTEGRITY 2021-09-14 21:18:07 +03:00
catch_p.h Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch.cpp Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
CMakeLists.txt Add missing dependencies of tests on their helper programs 2021-09-17 12:57:25 +02:00
expected_assert.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_assert.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_assert.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_assert.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_assert.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_assert.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_badxml.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_badxml.lightxml
expected_badxml.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_badxml.teamcity
expected_badxml.txt
expected_badxml.xml
expected_benchlibcallgrind_0.txt
expected_benchlibcallgrind_1.txt
expected_benchlibcallgrind.csv
expected_benchlibcallgrind.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchlibcallgrind.lightxml testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.tap testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.teamcity testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcallgrind.xml testlib selftest: rebaseline benchlibcallgrind results 2020-07-22 23:23:12 +02:00
expected_benchlibcounting.csv
expected_benchlibcounting.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchlibcounting.lightxml
expected_benchlibcounting.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_benchlibcounting.teamcity
expected_benchlibcounting.txt
expected_benchlibcounting.xml
expected_benchlibeventcounter.csv
expected_benchlibeventcounter.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchlibeventcounter.lightxml
expected_benchlibeventcounter.tap
expected_benchlibeventcounter.teamcity
expected_benchlibeventcounter.txt
expected_benchlibeventcounter.xml
expected_benchliboptions.csv
expected_benchliboptions.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchliboptions.lightxml
expected_benchliboptions.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_benchliboptions.teamcity
expected_benchliboptions.txt
expected_benchliboptions.xml
expected_benchlibtickcounter.csv
expected_benchlibtickcounter.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchlibtickcounter.lightxml
expected_benchlibtickcounter.tap
expected_benchlibtickcounter.teamcity
expected_benchlibtickcounter.txt
expected_benchlibtickcounter.xml
expected_benchlibwalltime.csv
expected_benchlibwalltime.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_benchlibwalltime.lightxml
expected_benchlibwalltime.tap
expected_benchlibwalltime.teamcity
expected_benchlibwalltime.txt
expected_benchlibwalltime.xml
expected_blacklisted.junitxml Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_blacklisted.lightxml Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_blacklisted.tap Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_blacklisted.teamcity Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_blacklisted.txt Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_blacklisted.xml Add more tests of blacklisting, combined with XPASS and XFAIL 2021-08-27 20:16:18 +02:00
expected_cmptest.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_cmptest.lightxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.tap QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.teamcity QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.txt QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_cmptest.xml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_commandlinedata.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_commandlinedata.lightxml
expected_commandlinedata.tap
expected_commandlinedata.teamcity
expected_commandlinedata.txt
expected_commandlinedata.xml
expected_counting.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_counting.lightxml
expected_counting.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_counting.teamcity
expected_counting.txt
expected_counting.xml
expected_crashes_1.txt
expected_crashes_2.txt
expected_crashes_3.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_crashes_4.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_crashes_5.txt Merge remote-tracking branch 'origin/5.13' into dev 2019-02-20 09:51:12 +01:00
expected_datatable.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_datatable.lightxml
expected_datatable.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_datatable.teamcity
expected_datatable.txt
expected_datatable.xml
expected_datetime.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_datetime.lightxml
expected_datetime.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_datetime.teamcity
expected_datetime.txt
expected_datetime.xml
expected_differentexec.junitxml testlib: Clarify that our XUnit reporter is actually a JUnit reporter 2020-02-03 13:48:25 +01:00
expected_differentexec.lightxml
expected_differentexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_differentexec.teamcity
expected_differentexec.txt
expected_differentexec.xml
expected_exceptionthrow.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_exceptionthrow.lightxml
expected_exceptionthrow.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_exceptionthrow.teamcity
expected_exceptionthrow.txt
expected_exceptionthrow.xml
expected_expectfail.junitxml Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_expectfail.lightxml Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_expectfail.tap Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_expectfail.teamcity Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_expectfail.txt Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_expectfail.xml Include check for the Totals line in testlib's expectedfail selftest 2021-08-27 20:16:18 +02:00
expected_failcleanup.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_failcleanup.lightxml
expected_failcleanup.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failcleanup.teamcity
expected_failcleanup.txt
expected_failcleanup.xml
expected_faildatatype.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_faildatatype.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_faildatatype.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_faildatatype.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_faildatatype.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_faildatatype.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failfetchtype.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_failfetchtype.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failfetchtype.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failfetchtype.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failfetchtype.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failfetchtype.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_failinit.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_failinit.lightxml
expected_failinit.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failinit.teamcity
expected_failinit.txt
expected_failinit.xml
expected_failinitdata.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_failinitdata.lightxml
expected_failinitdata.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_failinitdata.teamcity
expected_failinitdata.txt
expected_failinitdata.xml
expected_fetchbogus.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_fetchbogus.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_fetchbogus.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_fetchbogus.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_fetchbogus.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_fetchbogus.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_findtestdata.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_findtestdata.lightxml
expected_findtestdata.tap
expected_findtestdata.teamcity
expected_findtestdata.txt
expected_findtestdata.xml
expected_float.txt Update float16 part of TestLib selftest 2021-07-28 21:26:55 +02:00
expected_globaldata.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_globaldata.lightxml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.tap Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.teamcity Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.txt Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.xml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_junit.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_keyboard.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_keyboard.lightxml
expected_keyboard.tap
expected_keyboard.teamcity
expected_keyboard.txt
expected_keyboard.xml
expected_longstring.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_longstring.lightxml
expected_longstring.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_longstring.teamcity
expected_longstring.txt
expected_longstring.xml
expected_maxwarnings.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_maxwarnings.lightxml testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
expected_maxwarnings.tap
expected_maxwarnings.teamcity testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
expected_maxwarnings.txt testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
expected_maxwarnings.xml testlib: Rename QAbstractTestLogger::QSystem to QCritical 2021-08-10 18:06:36 +02:00
expected_multiexec.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_multiexec.lightxml
expected_multiexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_multiexec.teamcity
expected_multiexec.txt
expected_multiexec.xml
expected_pairdiagnostics.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_pairdiagnostics.lightxml QTest: fix -Wformat-overflow GCC warning 2021-07-01 06:44:30 +02:00
expected_pairdiagnostics.tap QTest: fix -Wformat-overflow GCC warning 2021-07-01 06:44:30 +02:00
expected_pairdiagnostics.teamcity QTest: fix -Wformat-overflow GCC warning 2021-07-01 06:44:30 +02:00
expected_pairdiagnostics.txt QTest: fix -Wformat-overflow GCC warning 2021-07-01 06:44:30 +02:00
expected_pairdiagnostics.xml QTest: fix -Wformat-overflow GCC warning 2021-07-01 06:44:30 +02:00
expected_pass.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_pass.lightxml Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.tap Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.teamcity Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.txt Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_pass.xml Add 'pass' test to testlib selftests 2020-03-05 15:18:04 +01:00
expected_printdatatags.txt
expected_printdatatagswithglobaltags.txt
expected_qexecstringlist.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_qexecstringlist.lightxml
expected_qexecstringlist.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_qexecstringlist.teamcity
expected_qexecstringlist.txt
expected_qexecstringlist.xml
expected_signaldumper.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_signaldumper.lightxml testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.tap testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.teamcity testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.txt testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_signaldumper.xml testlib: Defer signal dumper start until tests are ready to run 2020-07-22 23:23:16 +02:00
expected_silent.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_singleskip.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_singleskip.lightxml
expected_singleskip.tap
expected_singleskip.teamcity
expected_singleskip.txt
expected_singleskip.xml
expected_skip.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_skip.lightxml
expected_skip.tap
expected_skip.teamcity
expected_skip.txt
expected_skip.xml
expected_skipcleanup.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_skipcleanup.lightxml
expected_skipcleanup.tap
expected_skipcleanup.teamcity
expected_skipcleanup.txt
expected_skipcleanup.xml
expected_skipinit.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_skipinit.lightxml
expected_skipinit.tap
expected_skipinit.teamcity
expected_skipinit.txt
expected_skipinit.xml
expected_skipinitdata.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_skipinitdata.lightxml
expected_skipinitdata.tap
expected_skipinitdata.teamcity
expected_skipinitdata.txt
expected_skipinitdata.xml
expected_sleep.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_sleep.lightxml Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.tap Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.teamcity Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.txt Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_sleep.xml Fix integer overflows in QDeadlineTimer 2019-05-08 17:19:44 +00:00
expected_strcmp.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_strcmp.lightxml
expected_strcmp.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_strcmp.teamcity
expected_strcmp.txt
expected_strcmp.xml
expected_subtest.junitxml Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_subtest.lightxml Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_subtest.tap Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_subtest.teamcity Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_subtest.txt Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_subtest.xml Add a repeated-failure selftest for testlib 2021-09-01 17:11:43 +02:00
expected_testlib.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_testlib.lightxml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.tap QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.teamcity QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.txt QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_testlib.xml QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
expected_tuplediagnostics.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_tuplediagnostics.lightxml Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_tuplediagnostics.teamcity Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.txt Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_tuplediagnostics.xml Eliminate some stray misleading paths from expected output files 2019-01-16 18:47:41 +00:00
expected_verbose1.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_verbose1.lightxml
expected_verbose1.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verbose1.teamcity
expected_verbose1.txt
expected_verbose1.xml
expected_verbose2.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_verbose2.lightxml
expected_verbose2.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verbose2.teamcity
expected_verbose2.txt
expected_verbose2.xml
expected_verifyexceptionthrown.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_verifyexceptionthrown.lightxml
expected_verifyexceptionthrown.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_verifyexceptionthrown.teamcity
expected_verifyexceptionthrown.txt
expected_verifyexceptionthrown.xml
expected_warnings.junitxml testlib: Don't write redundant log message information in JUnit reporter 2021-08-10 18:06:36 +02:00
expected_warnings.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_warnings.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_warnings.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_warnings.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_warnings.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_watchdog.junitxml testlib: Move stdout/stderr reporting into individual <testcase> elements 2021-08-10 18:06:36 +02:00
expected_watchdog.lightxml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_watchdog.tap testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_watchdog.teamcity testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_watchdog.txt testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
expected_watchdog.xml testlib: Pass on file location on failure, but don't assume we have one 2021-08-04 17:31:51 +00:00
generate_expected_output.py Rename command-option to generate_expected_output.py 2021-10-01 19:24:31 +02:00
qt_attribution.json Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
README testlib selftest: Add README explaining how to run and debug tests 2020-07-21 13:43:51 +02:00
tst_selftests.cpp testlib: Improve JUnit XML conformance 2021-08-05 03:58:49 +02:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Running the QtTestLib selftests with Catch2
===========================================

Catch2 [1] is a header only test framework that we use to allow
testing QtTestLib without relying on any part of testlib itself.

To run the test suite, execute 'make check' or './tst_selftests'
as normal. This should print:

    ===================================================================
    All tests passed (2453 assertions in 5 test cases)

To run specific tests, first lists the available tests:

     ./tst_selftests -l
    All available test cases:
      Loggers support both old and new style arguments
      Loggers can output to both file and stdout
      Logging to file and stdout at the same time
      All loggers can be enabled at the same time
      Scenario: Test output of the loggers is as expected
    5 test cases

Then pass the name of the test in quotes as the first argument:

     ./tst_selftests "Loggers support both old and new style arguments"
    Filters: Loggers support both old and new style arguments
    ==================================================================
    All tests passed (96 assertions in 1 test case)

You can find the tests in the sources as individual TEST_CASE
entries. Note that each of these tests run the tests once per
logger, and in the case of the test log check also all sub tests,
so the amount of actual test assertions is much higher than the
five tests listed above.

To see what the tests is actually doing, pass the -s option.
This will result in very verbose output. Each leaf test is
prefixed with a heading:

    ---------------------------------------------------------------
          Given: The QTestLog::TAP logger
           When: Passing arguments with new style
    ---------------------------------------------------------------

You can choose a specific subtest by passing the -c option:

     ./tst_selftests "Scenario: Test output of the loggers is as expected" \
        -c "Given: The QTestLog::Plain logger" \
        -c 'And given: The "skip" subtest'

It's possible to pass only the first -c options, to e.g. run all
tests with the Plain logger, but it's unfortunately not possible
to pass only the last -c option, to run the 'skip' subtest with
all loggers.

If a test fails it will print the expected, actual, and difference.
The test results are also left in a temporary directory for closer
inspection.

Add new tests by modifying selftest.pri and CMakeLists.txt, adding
a new subprogram.

Generating new test expectations is done using the python script
in this directory (generate_expected_output.py). In the future this
will be done with the --rebase option to ./tst_selftest, but this
is not fleshed out yet.

[1] https://github.com/catchorg/Catch2