diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-12-15 18:20:01 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-12-19 18:58:44 +0100 |
commit | f8b74a49576ea453b3bfc7356a23cd4f2171fa76 (patch) | |
tree | e38a6f5f19b0d4309d257ff684732b3f8584446b /tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt | |
parent | 5cc75108012251bef96c56a71cb3f92274990064 (diff) |
QXmlStreamReader: update test distribution
As mentioned in the linked bugreport, we are not allowed to distribute
the uncompressed files from one of the XML test datasets that we use
in our tests.
This patch removes the uncompressed version, and replaces it by the
xmltest.zip archive taken from [0].
Once the test is started, QZipReader is used to uncompress the archive,
and once the test is done, the uncompressed data is removed.
However the test data from [0] is very old, so it is slightly different
from what we had previously (the previous data was taken from w3c).
As a result, 4 test cases are failing with this data. To fix it, we
store the updated versions of 4 xml files separately, and replace them
after uncompressing the archive.
[0]: http://www.jclark.com/xml/
Fixes: QTBUG-81503
Pick-to: 6.3 6.2 5.15
Change-Id: Ied5233970a529deebca56b1eab07fe1c328a2ee0
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt')
-rw-r--r-- | tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt b/tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt index aae8b9f1e9..ab20f4d49e 100644 --- a/tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt +++ b/tests/auto/corelib/serialization/qxmlstream/CMakeLists.txt @@ -11,8 +11,9 @@ list(APPEND test_data "XML-Test-Suite") qt_internal_add_test(tst_qxmlstream SOURCES tst_qxmlstream.cpp - PUBLIC_LIBRARIES + LIBRARIES Qt::Network Qt::Xml + Qt::GuiPrivate TESTDATA ${test_data} ) |