diff options
Diffstat (limited to 'tests/auto/corelib/serialization/qtextstream/test')
-rw-r--r-- | tests/auto/corelib/serialization/qtextstream/test/CMakeLists.txt | 49 | ||||
-rw-r--r-- | tests/auto/corelib/serialization/qtextstream/test/test.pro | 28 |
2 files changed, 49 insertions, 28 deletions
diff --git a/tests/auto/corelib/serialization/qtextstream/test/CMakeLists.txt b/tests/auto/corelib/serialization/qtextstream/test/CMakeLists.txt new file mode 100644 index 0000000000..588a49fcf0 --- /dev/null +++ b/tests/auto/corelib/serialization/qtextstream/test/CMakeLists.txt @@ -0,0 +1,49 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +##################################################################### +## tst_qtextstream Test: +##################################################################### + +# Collect test data +list(APPEND test_data "../rfc3261.txt") +list(APPEND test_data "../task113817.txt") +list(APPEND test_data "../qtextstream.qrc") +list(APPEND test_data "../qtextstream_integrity.qrc") +list(APPEND test_data "../tst_qtextstream.cpp") +list(APPEND test_data "../resources") +list(APPEND test_data "../BLACKLIST") + +qt_internal_add_test(tst_qtextstream + OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../" + SOURCES + ../tst_qtextstream.cpp + LIBRARIES + Qt::Network + Qt::TestPrivate + TESTDATA ${test_data} + QT_TEST_SERVER_LIST "cyrus" +) + +if(QT_FEATURE_sanitize_address) + set_property(TEST tst_qtextstream APPEND PROPERTY ENVIRONMENT "QTEST_FUNCTION_TIMEOUT=900000") +endif() + +# Resources: +set(qtextstream_resource_files + "../resources/big_endian/" + "../resources/little_endian/" +) + +qt_internal_add_resource(tst_qtextstream "qtextstream" + PREFIX + "/tst_textstream/" + BASE + ".." + FILES + ${qtextstream_resource_files} +) + +if(QT_FEATURE_process) + add_dependencies(tst_qtextstream stdinProcess readAllStdinProcess readLineStdinProcess) +endif() diff --git a/tests/auto/corelib/serialization/qtextstream/test/test.pro b/tests/auto/corelib/serialization/qtextstream/test/test.pro deleted file mode 100644 index 0f289a5ce1..0000000000 --- a/tests/auto/corelib/serialization/qtextstream/test/test.pro +++ /dev/null @@ -1,28 +0,0 @@ -CONFIG += testcase -TARGET = ../tst_qtextstream -QT = core network testlib -SOURCES = ../tst_qtextstream.cpp -RESOURCES += ../qtextstream.qrc -INCLUDEPATH += ../../../../../shared/ -HEADERS += ../../../../../shared/emulationdetector.h - -win32 { - CONFIG(debug, debug|release) { - TARGET = ../../debug/tst_qtextstream - } else { - TARGET = ../../release/tst_qtextstream - } -} - -TESTDATA += \ - ../rfc3261.txt \ - ../shift-jis.txt \ - ../task113817.txt \ - ../qtextstream.qrc \ - ../tst_qtextstream.cpp \ - ../resources \ - ../BLACKLIST - -builtin_testdata { - DEFINES += BUILTIN_TESTDATA -} |