qt6-bb10/tests/auto/testlib/selftests
Timur Pocheptsov 524b19fc23 Selftest - copy XAUTHORITY environment variable
Otherwise XOpenDisplay in a newly spawned process may fail with
a 'No protocol specified' message (as it recently happened in
CentOS 8.1 vm).

Fixes: QTBUG-87621
Pick-to: 5.15
Change-Id: Ib6c08c7f154fb2a126d32a4aa52b535e5daa1589
Reviewed-by: Liang Qi <liang.qi@qt.io>
2020-10-28 14:27:37 +00:00
..
assert CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
badxml CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchlibcallgrind CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchlibcounting CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchlibeventcounter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchliboptions CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchlibtickcounter CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
benchlibwalltime CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
blacklisted CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
cmptest Deprecate QVariant::Type 2020-10-23 09:58:57 +02:00
commandlinedata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
counting Auto tests: Fix some MSVC warnings about integer conversions 2020-10-21 07:31:27 +02:00
crashes CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
datatable CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
datetime CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
deleteLater CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
deleteLater_noApp CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
differentexec CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
exceptionthrow CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
expectfail CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
failcleanup CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
faildatatype CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
failfetchtype CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
failinit CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
failinitdata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
fetchbogus CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
findtestdata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
float CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
globaldata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
keyboard CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
longstring CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
maxwarnings CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
mouse CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
multiexec CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
pairdiagnostics CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
pass CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
printdatatags Auto tests: Fix some MSVC warnings about integer conversions 2020-10-21 07:31:27 +02:00
printdatatagswithglobaltags Auto tests: Fix some MSVC warnings about integer conversions 2020-10-21 07:31:27 +02:00
qexecstringlist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
signaldumper Auto tests: Fix some MSVC warnings about integer conversions 2020-10-21 07:31:27 +02:00
silent Auto tests: Fix some MSVC warnings about integer conversions 2020-10-21 07:31:27 +02:00
singleskip CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
skip CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
skipcleanup CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
skipinit CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
skipinitdata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
sleep CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
strcmp CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
subtest CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
testlib CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
tuplediagnostics CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
verbose1 CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
verbose2 CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
verifyexceptionthrown CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
warnings CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
watchdog CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
xunit CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.gitignore
.prev_CMakeLists.txt CMake: Enable testlib selftests 2020-03-18 16:28:30 +01:00
CATCH_LICENSE.txt Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
README testlib selftest: Add README explaining how to run and debug tests 2020-07-21 13:43:51 +02:00
catch.cpp Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch_p.h Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
catch_p_p.h Remove winrt 2020-06-06 20:25:49 +02:00
expected_assert.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_assert.lightxml
expected_assert.tap
expected_assert.teamcity
expected_assert.txt
expected_assert.xml
expected_badxml.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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.csv
expected_benchlibcallgrind.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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_benchlibcallgrind_0.txt
expected_benchlibcallgrind_1.txt
expected_benchlibcounting.csv
expected_benchlibcounting.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibeventcounter.lightxml
expected_benchlibeventcounter.tap
expected_benchlibeventcounter.teamcity
expected_benchlibeventcounter.txt
expected_benchlibeventcounter.xml
expected_benchliboptions.csv
expected_benchliboptions.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibtickcounter.lightxml
expected_benchlibtickcounter.tap
expected_benchlibtickcounter.teamcity
expected_benchlibtickcounter.txt
expected_benchlibtickcounter.xml
expected_benchlibwalltime.csv
expected_benchlibwalltime.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_benchlibwalltime.lightxml
expected_benchlibwalltime.tap
expected_benchlibwalltime.teamcity
expected_benchlibwalltime.txt
expected_benchlibwalltime.xml
expected_blacklisted.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_blacklisted.lightxml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.tap testlib selftest: check blacklisted test for test failures 2020-07-22 23:23:09 +02:00
expected_blacklisted.teamcity testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.txt testlib selftest: check blacklisted test for test failures 2020-07-22 23:23:09 +02:00
expected_blacklisted.xml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_cmptest.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_cmptest.lightxml QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
expected_cmptest.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_cmptest.teamcity QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
expected_cmptest.txt QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
expected_cmptest.xml QTestlib: Enable comparing QList against initializer lists/arrays 2020-07-21 22:01:20 +02:00
expected_commandlinedata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_commandlinedata.lightxml
expected_commandlinedata.tap
expected_commandlinedata.teamcity
expected_commandlinedata.txt
expected_commandlinedata.xml
expected_counting.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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
expected_crashes_4.txt
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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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 testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_expectfail.lightxml
expected_expectfail.tap QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.teamcity QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.txt QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_expectfail.xml
expected_failcleanup.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_faildatatype.lightxml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.tap Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.teamcity Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.txt Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_faildatatype.xml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_failfetchtype.lightxml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.tap Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.teamcity Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.txt Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failfetchtype.xml Test that mismatches of datatype in test data columns are rejected 2018-12-06 18:29:22 +00:00
expected_failinit.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_fetchbogus.lightxml
expected_fetchbogus.tap
expected_fetchbogus.teamcity
expected_fetchbogus.txt
expected_fetchbogus.xml
expected_findtestdata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_findtestdata.lightxml
expected_findtestdata.tap
expected_findtestdata.teamcity
expected_findtestdata.txt
expected_findtestdata.xml
expected_float.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_float.lightxml QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_float.teamcity QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.txt QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_float.xml QCOMPARE: treat values as equal if qFuzzyIsNull(each) 2020-04-30 13:44:08 +02:00
expected_globaldata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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_keyboard.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_keyboard.lightxml
expected_keyboard.tap
expected_keyboard.teamcity
expected_keyboard.txt
expected_keyboard.xml
expected_longstring.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_maxwarnings.lightxml
expected_maxwarnings.tap
expected_maxwarnings.teamcity
expected_maxwarnings.txt
expected_maxwarnings.xml
expected_multiexec.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_pairdiagnostics.lightxml Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_pairdiagnostics.teamcity Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.txt Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pairdiagnostics.xml Long live std::pair! 2020-06-10 16:49:08 +02:00
expected_pass.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_silent.lightxml
expected_silent.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_silent.teamcity
expected_silent.txt
expected_silent.xml
expected_singleskip.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_singleskip.lightxml
expected_singleskip.tap
expected_singleskip.teamcity
expected_singleskip.txt
expected_singleskip.xml
expected_skip.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_skip.lightxml
expected_skip.tap
expected_skip.teamcity
expected_skip.txt
expected_skip.xml
expected_skipcleanup.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_skipcleanup.lightxml
expected_skipcleanup.tap
expected_skipcleanup.teamcity
expected_skipcleanup.txt
expected_skipcleanup.xml
expected_skipinit.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_skipinit.lightxml
expected_skipinit.tap
expected_skipinit.teamcity
expected_skipinit.txt
expected_skipinit.xml
expected_skipinitdata.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_skipinitdata.lightxml
expected_skipinitdata.tap
expected_skipinitdata.teamcity
expected_skipinitdata.txt
expected_skipinitdata.xml
expected_sleep.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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 testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_subtest.lightxml
expected_subtest.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_subtest.teamcity
expected_subtest.txt
expected_subtest.xml
expected_testlib.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_testlib.lightxml Add assorted tests to exercise more QTest functions 2019-01-24 15:51:04 +00:00
expected_testlib.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_testlib.teamcity Add assorted tests to exercise more QTest functions 2019-01-24 15:51:04 +00:00
expected_testlib.txt Add assorted tests to exercise more QTest functions 2019-01-24 15:51:04 +00:00
expected_testlib.xml Add assorted tests to exercise more QTest functions 2019-01-24 15:51:04 +00:00
expected_tuplediagnostics.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +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: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_warnings.lightxml
expected_warnings.tap QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.teamcity QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.txt QTestResult: Don't pass a nullptr file to addFailure() 2020-09-30 16:20:29 +02:00
expected_warnings.xml
expected_watchdog.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_watchdog.lightxml Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.tap Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.teamcity Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.txt Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_watchdog.xml Add a testlib selftest for the watchdog 2018-12-06 18:29:47 +00:00
expected_xunit.junitxml testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
expected_xunit.lightxml
expected_xunit.tap testlib selftest: rebaseline tap results to not include line numbers 2020-07-22 23:23:01 +02:00
expected_xunit.teamcity
expected_xunit.txt
expected_xunit.xml
generate_expected_output.py testlib: Add start time and test duration to JUnit XML 2020-07-24 00:52:01 +02:00
qt_attribution.json Rewrite Qt Testlib selftest to not rely on Qt Testlib itself 2020-05-11 15:42:28 +02:00
selftest.pro testlib selftest: Don't pass TESTARGS to Catch2 2020-07-23 11:08:15 +02:00
selftests.pri Restructure testlib selftest project 2020-03-24 21:04:43 +01:00
selftests.pro Remove winrt 2020-06-06 20:25:49 +02:00
tst_selftests.cpp Selftest - copy XAUTHORITY environment variable 2020-10-28 14:27:37 +00:00

README

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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