qt5base-lts/tests/manual/CMakeLists.txt
Thiago Macieira eb9f88a078 QDnsLookup/Unix: modernize the setting of IPv6 server addresses
Instead of using #if, this now uses SFINAE to detect the presence of the
glibc extensions to set IPv6 nameserver addresses. It's also possible
that this fixes some bugs that have always been there, but never checked
because we don't have a way to unit-test explicit name servers.

To that effect, this commit adds a manual unit test that mimics the BIND
tool "dig". When running:

 ./qdnslookup qt-project.org any @dns.google

it printed for me:

; <<>> QDnsLookup 6.6.0
;; status: NoError
;; QUESTION:
;qt-project.org                 IN ANY

;; ANSWER:
qt-project.org            3600  IN MX   10 mx.qt-project.org
qt-project.org            3600  IN NS   ns14.cloudns.net
qt-project.org            3600  IN NS   ns11.cloudns.net
qt-project.org            3600  IN NS   ns12.cloudns.net
qt-project.org            3600  IN NS   ns13.cloudns.net
qt-project.org            3600  IN A    52.18.144.254
qt-project.org            3600  IN TXT  "v=spf1 mx ip4:193.209.87.4 include:spf.protection.outlook.com ~all"

;; Query time: 241 ms
;; SERVER: 2001:4860:4860::8844#53

strace confirms the DNS queries were sent to the correct address.

Change-Id: I3e3bfef633af4130a03afffd175d56a92371ed16
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-05-14 21:44:19 -07:00

91 lines
2.5 KiB
CMake

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Don't build manual tests when targeting iOS.
if(UIKIT)
return()
endif()
add_subdirectory(filetest)
# diaglib is broken in dev due to missing
# QtOpenGL/QGLFunctions headers
# add_subdirectory(embeddedintoforeignwindow)
# add_subdirectory(foreignwindows)
add_subdirectory(gestures)
add_subdirectory(highdpi)
add_subdirectory(inputmethodhints)
add_subdirectory(keypadnavigation)
#add_subdirectory(lance) # qgl.h missing
add_subdirectory(qcursor)
add_subdirectory(qdesktopservices)
add_subdirectory(qdnslookup)
add_subdirectory(qgraphicsitem)
add_subdirectory(qgraphicsitemgroup)
add_subdirectory(qgraphicslayout/flicker)
add_subdirectory(qhttpnetworkconnection)
add_subdirectory(qimagereader)
add_subdirectory(qlayout)
add_subdirectory(qlocale)
add_subdirectory(qmimedatabase)
add_subdirectory(qnetconmonitor)
add_subdirectory(qnetworkaccessmanager/qget)
add_subdirectory(qnetworkinformation)
if (QT_FEATURE_openssl AND UNIX)
add_subdirectory(qnetworkreply)
endif()
if(QT_FEATURE_permissions)
add_subdirectory(permissions)
endif()
add_subdirectory(qstorageinfo)
add_subdirectory(qscreen)
add_subdirectory(qscreen_xrandr)
add_subdirectory(qsslsocket)
add_subdirectory(qsysinfo)
add_subdirectory(qtabletevent)
add_subdirectory(qtexteditlist)
add_subdirectory(qtexttableborders)
add_subdirectory(qtbug-8933)
add_subdirectory(qtbug-52641)
add_subdirectory(qtouchevent)
add_subdirectory(touch)
add_subdirectory(qwidget_zorder)
add_subdirectory(repaint)
add_subdirectory(socketengine)
add_subdirectory(textrendering)
add_subdirectory(widgets)
add_subdirectory(windowflags)
add_subdirectory(windowgeometry)
add_subdirectory(windowmodality)
add_subdirectory(widgetgrab)
if(QT_FEATURE_xcb)
add_subdirectory(xembed)
endif()
add_subdirectory(xmlstreamlint)
add_subdirectory(shortcuts)
add_subdirectory(dialogs)
add_subdirectory(windowmask)
add_subdirectory(windowtransparency)
add_subdirectory(unc)
add_subdirectory(qtabbar)
add_subdirectory(rhi)
if(UNIX)
add_subdirectory(network_remote_stresstest)
add_subdirectory(network_stresstest)
endif()
if(QT_FEATURE_openssl)
add_subdirectory(qssloptions)
endif()
if(QT_FEATURE_opengl)
# add_subdirectory(qopengltextureblitter) # TODO: broken in dev
endif()
if(QT_FEATURE_egl AND QT_FEATURE_opengl)
# add_subdirectory(qopenglcontext) # TODO: broken in dev
endif()
if(QT_FEATURE_vulkan)
add_subdirectory(qvulkaninstance)
endif()
if(ANDROID)
add_subdirectory(android_content_uri)
endif()