summaryrefslogtreecommitdiffstats
path: root/tests/auto/input
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/input')
-rw-r--r--tests/auto/input/CMakeLists.txt3
-rw-r--r--tests/auto/input/abstractaxisinput/CMakeLists.txt14
-rw-r--r--tests/auto/input/abstractaxisinput/abstractaxisinput.pro11
-rw-r--r--tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp29
-rw-r--r--tests/auto/input/action/CMakeLists.txt11
-rw-r--r--tests/auto/input/action/action.pro11
-rw-r--r--tests/auto/input/action/tst_action.cpp29
-rw-r--r--tests/auto/input/actioninput/CMakeLists.txt12
-rw-r--r--tests/auto/input/actioninput/actioninput.pro11
-rw-r--r--tests/auto/input/actioninput/tst_actioninput.cpp29
-rw-r--r--tests/auto/input/analogaxisinput/CMakeLists.txt12
-rw-r--r--tests/auto/input/analogaxisinput/analogaxisinput.pro11
-rw-r--r--tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp29
-rw-r--r--tests/auto/input/axis/CMakeLists.txt11
-rw-r--r--tests/auto/input/axis/axis.pro11
-rw-r--r--tests/auto/input/axis/tst_axis.cpp29
-rw-r--r--tests/auto/input/axisaccumulator/CMakeLists.txt11
-rw-r--r--tests/auto/input/axisaccumulator/axisaccumulator.pro11
-rw-r--r--tests/auto/input/axisaccumulator/tst_axisaccumulator.cpp31
-rw-r--r--tests/auto/input/axisaccumulatorjob/CMakeLists.txt11
-rw-r--r--tests/auto/input/axisaccumulatorjob/axisaccumulatorjob.pro11
-rw-r--r--tests/auto/input/axisaccumulatorjob/tst_axisaccumulatorjob.cpp29
-rw-r--r--tests/auto/input/buttonaxisinput/CMakeLists.txt12
-rw-r--r--tests/auto/input/buttonaxisinput/buttonaxisinput.pro11
-rw-r--r--tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp29
-rw-r--r--tests/auto/input/commons/commons.pri7
-rw-r--r--tests/auto/input/commons/testdevice.cpp5
-rw-r--r--tests/auto/input/commons/testdevice.h29
-rw-r--r--tests/auto/input/commons/testdeviceproxy.h29
-rw-r--r--tests/auto/input/input.pro34
-rw-r--r--tests/auto/input/inputchord/CMakeLists.txt12
-rw-r--r--tests/auto/input/inputchord/inputchord.pro11
-rw-r--r--tests/auto/input/inputchord/tst_inputchord.cpp29
-rw-r--r--tests/auto/input/inputsequence/CMakeLists.txt12
-rw-r--r--tests/auto/input/inputsequence/inputsequence.pro11
-rw-r--r--tests/auto/input/inputsequence/tst_inputsequence.cpp29
-rw-r--r--tests/auto/input/keyboardhandler/CMakeLists.txt12
-rw-r--r--tests/auto/input/keyboardhandler/keyboardhandler.pro11
-rw-r--r--tests/auto/input/keyboardhandler/tst_keyboardhandler.cpp29
-rw-r--r--tests/auto/input/loadproxydevicejob/CMakeLists.txt12
-rw-r--r--tests/auto/input/loadproxydevicejob/loadproxydevicejob.pro11
-rw-r--r--tests/auto/input/loadproxydevicejob/tst_loadproxydevicejob.cpp31
-rw-r--r--tests/auto/input/logicaldevice/CMakeLists.txt11
-rw-r--r--tests/auto/input/logicaldevice/logicaldevice.pro11
-rw-r--r--tests/auto/input/logicaldevice/tst_logicaldevice.cpp29
-rw-r--r--tests/auto/input/mousedevice/CMakeLists.txt11
-rw-r--r--tests/auto/input/mousedevice/mousedevice.pro11
-rw-r--r--tests/auto/input/mousedevice/tst_mousedevice.cpp29
-rw-r--r--tests/auto/input/physicaldeviceproxy/CMakeLists.txt12
-rw-r--r--tests/auto/input/physicaldeviceproxy/physicaldeviceproxy.pro11
-rw-r--r--tests/auto/input/physicaldeviceproxy/tst_physicaldeviceproxy.cpp29
-rw-r--r--tests/auto/input/qabstractaxisinput/CMakeLists.txt12
-rw-r--r--tests/auto/input/qabstractaxisinput/qabstractaxisinput.pro11
-rw-r--r--tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp29
-rw-r--r--tests/auto/input/qabstractphysicaldevicebackendnode/CMakeLists.txt12
-rw-r--r--tests/auto/input/qabstractphysicaldevicebackendnode/qabstractphysicaldevicebackendnode.pro11
-rw-r--r--tests/auto/input/qabstractphysicaldevicebackendnode/tst_qabstractphysicaldevicebackendnode.cpp29
-rw-r--r--tests/auto/input/qabstractphysicaldeviceproxy/CMakeLists.txt12
-rw-r--r--tests/auto/input/qabstractphysicaldeviceproxy/qabstractphysicaldeviceproxy.pro11
-rw-r--r--tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp29
-rw-r--r--tests/auto/input/qaction/CMakeLists.txt12
-rw-r--r--tests/auto/input/qaction/qaction.pro11
-rw-r--r--tests/auto/input/qaction/tst_qaction.cpp29
-rw-r--r--tests/auto/input/qactioninput/CMakeLists.txt12
-rw-r--r--tests/auto/input/qactioninput/qactioninput.pro11
-rw-r--r--tests/auto/input/qactioninput/tst_qactioninput.cpp29
-rw-r--r--tests/auto/input/qanalogaxisinput/CMakeLists.txt12
-rw-r--r--tests/auto/input/qanalogaxisinput/qanalogaxisinput.pro11
-rw-r--r--tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp29
-rw-r--r--tests/auto/input/qaxis/CMakeLists.txt11
-rw-r--r--tests/auto/input/qaxis/qaxis.pro11
-rw-r--r--tests/auto/input/qaxis/tst_qaxis.cpp29
-rw-r--r--tests/auto/input/qaxisaccumulator/CMakeLists.txt12
-rw-r--r--tests/auto/input/qaxisaccumulator/qaxisaccumulator.pro11
-rw-r--r--tests/auto/input/qaxisaccumulator/tst_qaxisaccumulator.cpp29
-rw-r--r--tests/auto/input/qbuttonaxisinput/CMakeLists.txt12
-rw-r--r--tests/auto/input/qbuttonaxisinput/qbuttonaxisinput.pro11
-rw-r--r--tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp29
-rw-r--r--tests/auto/input/qkeyboardhandler/CMakeLists.txt12
-rw-r--r--tests/auto/input/qkeyboardhandler/qkeyboardhandler.pro11
-rw-r--r--tests/auto/input/qkeyboardhandler/tst_qkeyboardhandler.cpp29
-rw-r--r--tests/auto/input/qlogicaldevice/CMakeLists.txt11
-rw-r--r--tests/auto/input/qlogicaldevice/qlogicaldevice.pro11
-rw-r--r--tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp29
-rw-r--r--tests/auto/input/qmousedevice/CMakeLists.txt12
-rw-r--r--tests/auto/input/qmousedevice/qmousedevice.pro11
-rw-r--r--tests/auto/input/qmousedevice/tst_qmousedevice.cpp37
-rw-r--r--tests/auto/input/qmouseevent/CMakeLists.txt12
-rw-r--r--tests/auto/input/qmouseevent/qmouseevent.pro11
-rw-r--r--tests/auto/input/qmouseevent/tst_qmouseevent.cpp29
-rw-r--r--tests/auto/input/utils/CMakeLists.txt12
-rw-r--r--tests/auto/input/utils/tst_utils.cpp29
-rw-r--r--tests/auto/input/utils/utils.pro11
93 files changed, 388 insertions, 1233 deletions
diff --git a/tests/auto/input/CMakeLists.txt b/tests/auto/input/CMakeLists.txt
index 6bd7805af..8324f2f06 100644
--- a/tests/auto/input/CMakeLists.txt
+++ b/tests/auto/input/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from input.pro.
if(QT_FEATURE_private_tests)
diff --git a/tests/auto/input/abstractaxisinput/CMakeLists.txt b/tests/auto/input/abstractaxisinput/CMakeLists.txt
index 10dc60834..30fc901ed 100644
--- a/tests/auto/input/abstractaxisinput/CMakeLists.txt
+++ b/tests/auto/input/abstractaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from abstractaxisinput.pro.
#####################################################################
## tst_abstractaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_abstractaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_abstractaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_abstractaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
@@ -30,5 +40,5 @@ qt_internal_add_test(tst_abstractaxisinput
qt_internal_extend_target(tst_abstractaxisinput CONDITION QT_FEATURE_private_tests
SOURCES
../../core/common/qbackendnodetester.cpp ../../core/common/qbackendnodetester.h
- ../../core/common/testarbiter.h
+ ../../core/common/testarbiter.h ../commons/testdevice.cpp
)
diff --git a/tests/auto/input/abstractaxisinput/abstractaxisinput.pro b/tests/auto/input/abstractaxisinput/abstractaxisinput.pro
deleted file mode 100644
index 574b9af9e..000000000
--- a/tests/auto/input/abstractaxisinput/abstractaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_abstractaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_abstractaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp b/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
index 691139075..605dd4494 100644
--- a/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
+++ b/tests/auto/input/abstractaxisinput/tst_abstractaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/action/CMakeLists.txt b/tests/auto/input/action/CMakeLists.txt
index 5519a5659..7ab015913 100644
--- a/tests/auto/input/action/CMakeLists.txt
+++ b/tests/auto/input/action/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from action.pro.
#####################################################################
## tst_action Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_action LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_action
SOURCES
tst_action.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/action/action.pro b/tests/auto/input/action/action.pro
deleted file mode 100644
index 9896c95aa..000000000
--- a/tests/auto/input/action/action.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_action
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_action.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/action/tst_action.cpp b/tests/auto/input/action/tst_action.cpp
index b4a1b5331..9a4cb688c 100644
--- a/tests/auto/input/action/tst_action.cpp
+++ b/tests/auto/input/action/tst_action.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/actioninput/CMakeLists.txt b/tests/auto/input/actioninput/CMakeLists.txt
index f9564e2ac..545e75980 100644
--- a/tests/auto/input/actioninput/CMakeLists.txt
+++ b/tests/auto/input/actioninput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from actioninput.pro.
#####################################################################
## tst_actioninput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_actioninput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_actioninput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_actioninput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/actioninput/actioninput.pro b/tests/auto/input/actioninput/actioninput.pro
deleted file mode 100644
index 1091f2b76..000000000
--- a/tests/auto/input/actioninput/actioninput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_actioninput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_actioninput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/actioninput/tst_actioninput.cpp b/tests/auto/input/actioninput/tst_actioninput.cpp
index 1babf12bf..5604438e5 100644
--- a/tests/auto/input/actioninput/tst_actioninput.cpp
+++ b/tests/auto/input/actioninput/tst_actioninput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/analogaxisinput/CMakeLists.txt b/tests/auto/input/analogaxisinput/CMakeLists.txt
index 72cbbf68c..0e0e2d165 100644
--- a/tests/auto/input/analogaxisinput/CMakeLists.txt
+++ b/tests/auto/input/analogaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from analogaxisinput.pro.
#####################################################################
## tst_analogaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_analogaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_analogaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_analogaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/analogaxisinput/analogaxisinput.pro b/tests/auto/input/analogaxisinput/analogaxisinput.pro
deleted file mode 100644
index 16d237bf9..000000000
--- a/tests/auto/input/analogaxisinput/analogaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_analogaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_analogaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp b/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
index 6f91ce337..a003874fa 100644
--- a/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
+++ b/tests/auto/input/analogaxisinput/tst_analogaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/axis/CMakeLists.txt b/tests/auto/input/axis/CMakeLists.txt
index 71d83a1a4..e5d2cd9c0 100644
--- a/tests/auto/input/axis/CMakeLists.txt
+++ b/tests/auto/input/axis/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from axis.pro.
#####################################################################
## tst_axis Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_axis LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_axis
SOURCES
tst_axis.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/axis/axis.pro b/tests/auto/input/axis/axis.pro
deleted file mode 100644
index f2c1dec1d..000000000
--- a/tests/auto/input/axis/axis.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_axis
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_axis.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/axis/tst_axis.cpp b/tests/auto/input/axis/tst_axis.cpp
index 2f4cab10f..000c387cd 100644
--- a/tests/auto/input/axis/tst_axis.cpp
+++ b/tests/auto/input/axis/tst_axis.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/axisaccumulator/CMakeLists.txt b/tests/auto/input/axisaccumulator/CMakeLists.txt
index bacb004d2..6927c7001 100644
--- a/tests/auto/input/axisaccumulator/CMakeLists.txt
+++ b/tests/auto/input/axisaccumulator/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from axisaccumulator.pro.
#####################################################################
## tst_axisaccumulator Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_axisaccumulator LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_axisaccumulator
SOURCES
tst_axisaccumulator.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/axisaccumulator/axisaccumulator.pro b/tests/auto/input/axisaccumulator/axisaccumulator.pro
deleted file mode 100644
index 31a15718a..000000000
--- a/tests/auto/input/axisaccumulator/axisaccumulator.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_axisaccumulator
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_axisaccumulator.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/axisaccumulator/tst_axisaccumulator.cpp b/tests/auto/input/axisaccumulator/tst_axisaccumulator.cpp
index dda68c56b..ff7b5e4f0 100644
--- a/tests/auto/input/axisaccumulator/tst_axisaccumulator.cpp
+++ b/tests/auto/input/axisaccumulator/tst_axisaccumulator.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
@@ -154,7 +129,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(backendAxisAccumulator.value(), 0.0f);
- QCOMPARE(arbiter.dirtyNodes().count(), 0);
+ QCOMPARE(arbiter.dirtyNodes().size(), 0);
}
void checkIntegration_data()
diff --git a/tests/auto/input/axisaccumulatorjob/CMakeLists.txt b/tests/auto/input/axisaccumulatorjob/CMakeLists.txt
index 152a127ce..24ab0002c 100644
--- a/tests/auto/input/axisaccumulatorjob/CMakeLists.txt
+++ b/tests/auto/input/axisaccumulatorjob/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from axisaccumulatorjob.pro.
#####################################################################
## tst_axisaccumulatorjob Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_axisaccumulatorjob LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_axisaccumulatorjob
SOURCES
tst_axisaccumulatorjob.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/axisaccumulatorjob/axisaccumulatorjob.pro b/tests/auto/input/axisaccumulatorjob/axisaccumulatorjob.pro
deleted file mode 100644
index ad1a1a469..000000000
--- a/tests/auto/input/axisaccumulatorjob/axisaccumulatorjob.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_axisaccumulatorjob
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_axisaccumulatorjob.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/axisaccumulatorjob/tst_axisaccumulatorjob.cpp b/tests/auto/input/axisaccumulatorjob/tst_axisaccumulatorjob.cpp
index 65a2ba82e..f72d9f3dd 100644
--- a/tests/auto/input/axisaccumulatorjob/tst_axisaccumulatorjob.cpp
+++ b/tests/auto/input/axisaccumulatorjob/tst_axisaccumulatorjob.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/buttonaxisinput/CMakeLists.txt b/tests/auto/input/buttonaxisinput/CMakeLists.txt
index 3329ff12c..0d000b94e 100644
--- a/tests/auto/input/buttonaxisinput/CMakeLists.txt
+++ b/tests/auto/input/buttonaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from buttonaxisinput.pro.
#####################################################################
## tst_buttonaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_buttonaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_buttonaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_buttonaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/buttonaxisinput/buttonaxisinput.pro b/tests/auto/input/buttonaxisinput/buttonaxisinput.pro
deleted file mode 100644
index 1aa492aa4..000000000
--- a/tests/auto/input/buttonaxisinput/buttonaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_buttonaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_buttonaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp b/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
index 7aaf25dc9..2727a1c18 100644
--- a/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
+++ b/tests/auto/input/buttonaxisinput/tst_buttonaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/commons/commons.pri b/tests/auto/input/commons/commons.pri
deleted file mode 100644
index 4913f5bbb..000000000
--- a/tests/auto/input/commons/commons.pri
+++ /dev/null
@@ -1,7 +0,0 @@
-HEADERS += $$PWD/testdevice.h \
- $$PWD/testdeviceproxy.h
-
-INCLUDEPATH += $$PWD
-
-include(../../core/common/common.pri)
-
diff --git a/tests/auto/input/commons/testdevice.cpp b/tests/auto/input/commons/testdevice.cpp
new file mode 100644
index 000000000..eb4e233ee
--- /dev/null
+++ b/tests/auto/input/commons/testdevice.cpp
@@ -0,0 +1,5 @@
+// Copyright (C) 2022 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include "moc_testdevice.cpp"
+#include "moc_testdeviceproxy.cpp"
diff --git a/tests/auto/input/commons/testdevice.h b/tests/auto/input/commons/testdevice.h
index d7012ac70..1749ca16b 100644
--- a/tests/auto/input/commons/testdevice.h
+++ b/tests/auto/input/commons/testdevice.h
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef TESTDEVICE_H
#define TESTDEVICE_H
diff --git a/tests/auto/input/commons/testdeviceproxy.h b/tests/auto/input/commons/testdeviceproxy.h
index 737eadfe7..5a605a25f 100644
--- a/tests/auto/input/commons/testdeviceproxy.h
+++ b/tests/auto/input/commons/testdeviceproxy.h
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef TESTDEVICEPROXY_H
diff --git a/tests/auto/input/input.pro b/tests/auto/input/input.pro
deleted file mode 100644
index 7799c2b89..000000000
--- a/tests/auto/input/input.pro
+++ /dev/null
@@ -1,34 +0,0 @@
-TEMPLATE = subdirs
-
-qtConfig(private_tests) {
- SUBDIRS += \
- qaxis \
- qaction \
- qactioninput \
- qabstractaxisinput \
- qanalogaxisinput \
- qbuttonaxisinput \
- qkeyboardhandler \
- qlogicaldevice \
- axis \
- action \
- abstractaxisinput \
- actioninput \
- analogaxisinput \
- buttonaxisinput \
- keyboardhandler \
- qaxisaccumulator \
- inputsequence \
- inputchord \
- qabstractphysicaldevicebackendnode \
- logicaldevice \
- qabstractphysicaldeviceproxy \
- physicaldeviceproxy \
- loadproxydevicejob \
- qmousedevice \
- mousedevice \
- utils \
- axisaccumulator \
- axisaccumulatorjob \
- qmouseevent
-}
diff --git a/tests/auto/input/inputchord/CMakeLists.txt b/tests/auto/input/inputchord/CMakeLists.txt
index 49257f421..16fe6e95f 100644
--- a/tests/auto/input/inputchord/CMakeLists.txt
+++ b/tests/auto/input/inputchord/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from inputchord.pro.
#####################################################################
## tst_inputchord Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_inputchord LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_inputchord
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_inputchord.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/inputchord/inputchord.pro b/tests/auto/input/inputchord/inputchord.pro
deleted file mode 100644
index 09bbbb3ec..000000000
--- a/tests/auto/input/inputchord/inputchord.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_inputchord
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_inputchord.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/inputchord/tst_inputchord.cpp b/tests/auto/input/inputchord/tst_inputchord.cpp
index 97b448d9e..00f6b2ec3 100644
--- a/tests/auto/input/inputchord/tst_inputchord.cpp
+++ b/tests/auto/input/inputchord/tst_inputchord.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/inputsequence/CMakeLists.txt b/tests/auto/input/inputsequence/CMakeLists.txt
index b0faec313..c4363dd86 100644
--- a/tests/auto/input/inputsequence/CMakeLists.txt
+++ b/tests/auto/input/inputsequence/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from inputsequence.pro.
#####################################################################
## tst_inputsequence Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_inputsequence LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_inputsequence
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_inputsequence.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/inputsequence/inputsequence.pro b/tests/auto/input/inputsequence/inputsequence.pro
deleted file mode 100644
index 1fdb21f5b..000000000
--- a/tests/auto/input/inputsequence/inputsequence.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_inputsequence
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_inputsequence.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/inputsequence/tst_inputsequence.cpp b/tests/auto/input/inputsequence/tst_inputsequence.cpp
index 8a7939470..be213d5e2 100644
--- a/tests/auto/input/inputsequence/tst_inputsequence.cpp
+++ b/tests/auto/input/inputsequence/tst_inputsequence.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/keyboardhandler/CMakeLists.txt b/tests/auto/input/keyboardhandler/CMakeLists.txt
index 8726bd533..1a083207a 100644
--- a/tests/auto/input/keyboardhandler/CMakeLists.txt
+++ b/tests/auto/input/keyboardhandler/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from keyboardhandler.pro.
#####################################################################
## tst_keyboardhandler Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_keyboardhandler LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_keyboardhandler
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_keyboardhandler.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/keyboardhandler/keyboardhandler.pro b/tests/auto/input/keyboardhandler/keyboardhandler.pro
deleted file mode 100644
index 2e28c5045..000000000
--- a/tests/auto/input/keyboardhandler/keyboardhandler.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_keyboardhandler
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_keyboardhandler.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/keyboardhandler/tst_keyboardhandler.cpp b/tests/auto/input/keyboardhandler/tst_keyboardhandler.cpp
index b0280df05..250b2ad6b 100644
--- a/tests/auto/input/keyboardhandler/tst_keyboardhandler.cpp
+++ b/tests/auto/input/keyboardhandler/tst_keyboardhandler.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <qbackendnodetester.h>
diff --git a/tests/auto/input/loadproxydevicejob/CMakeLists.txt b/tests/auto/input/loadproxydevicejob/CMakeLists.txt
index edb18d443..08c33228b 100644
--- a/tests/auto/input/loadproxydevicejob/CMakeLists.txt
+++ b/tests/auto/input/loadproxydevicejob/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from loadproxydevicejob.pro.
#####################################################################
## tst_loadproxydevicejob Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_loadproxydevicejob LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_loadproxydevicejob
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_loadproxydevicejob.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/loadproxydevicejob/loadproxydevicejob.pro b/tests/auto/input/loadproxydevicejob/loadproxydevicejob.pro
deleted file mode 100644
index b52ba81f0..000000000
--- a/tests/auto/input/loadproxydevicejob/loadproxydevicejob.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_loadproxydevicejob
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_loadproxydevicejob.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/loadproxydevicejob/tst_loadproxydevicejob.cpp b/tests/auto/input/loadproxydevicejob/tst_loadproxydevicejob.cpp
index 41f5529a2..ab67ce30b 100644
--- a/tests/auto/input/loadproxydevicejob/tst_loadproxydevicejob.cpp
+++ b/tests/auto/input/loadproxydevicejob/tst_loadproxydevicejob.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
@@ -169,7 +144,7 @@ private Q_SLOTS:
job.run();
// THEN -> PhysicalDeviceWrapper::setDevice should not have been called
- QCOMPARE(arbiter.dirtyNodes().count(), 0);
+ QCOMPARE(arbiter.dirtyNodes().size(), 0);
}
}
diff --git a/tests/auto/input/logicaldevice/CMakeLists.txt b/tests/auto/input/logicaldevice/CMakeLists.txt
index e0ad48719..d8fe454db 100644
--- a/tests/auto/input/logicaldevice/CMakeLists.txt
+++ b/tests/auto/input/logicaldevice/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from logicaldevice.pro.
#####################################################################
## tst_logicaldevice Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_logicaldevice LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_logicaldevice
SOURCES
tst_logicaldevice.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/logicaldevice/logicaldevice.pro b/tests/auto/input/logicaldevice/logicaldevice.pro
deleted file mode 100644
index a832fe172..000000000
--- a/tests/auto/input/logicaldevice/logicaldevice.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_logicaldevice
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_logicaldevice.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/logicaldevice/tst_logicaldevice.cpp b/tests/auto/input/logicaldevice/tst_logicaldevice.cpp
index 94994886a..53cf0fb24 100644
--- a/tests/auto/input/logicaldevice/tst_logicaldevice.cpp
+++ b/tests/auto/input/logicaldevice/tst_logicaldevice.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/mousedevice/CMakeLists.txt b/tests/auto/input/mousedevice/CMakeLists.txt
index 696379f1f..7628faf9b 100644
--- a/tests/auto/input/mousedevice/CMakeLists.txt
+++ b/tests/auto/input/mousedevice/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from mousedevice.pro.
#####################################################################
## tst_mousedevice Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_mousedevice LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_mousedevice
SOURCES
tst_mousedevice.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/mousedevice/mousedevice.pro b/tests/auto/input/mousedevice/mousedevice.pro
deleted file mode 100644
index 8129a8dee..000000000
--- a/tests/auto/input/mousedevice/mousedevice.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_mousedevice
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_mousedevice.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/mousedevice/tst_mousedevice.cpp b/tests/auto/input/mousedevice/tst_mousedevice.cpp
index 2669daa89..63d03338f 100644
--- a/tests/auto/input/mousedevice/tst_mousedevice.cpp
+++ b/tests/auto/input/mousedevice/tst_mousedevice.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/physicaldeviceproxy/CMakeLists.txt b/tests/auto/input/physicaldeviceproxy/CMakeLists.txt
index 263e6ef4b..a12845c8d 100644
--- a/tests/auto/input/physicaldeviceproxy/CMakeLists.txt
+++ b/tests/auto/input/physicaldeviceproxy/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from physicaldeviceproxy.pro.
#####################################################################
## tst_physicaldeviceproxy Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_physicaldeviceproxy LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_physicaldeviceproxy
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_physicaldeviceproxy.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/physicaldeviceproxy/physicaldeviceproxy.pro b/tests/auto/input/physicaldeviceproxy/physicaldeviceproxy.pro
deleted file mode 100644
index f5656b211..000000000
--- a/tests/auto/input/physicaldeviceproxy/physicaldeviceproxy.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_physicaldeviceproxy
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_physicaldeviceproxy.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/physicaldeviceproxy/tst_physicaldeviceproxy.cpp b/tests/auto/input/physicaldeviceproxy/tst_physicaldeviceproxy.cpp
index ae58e0a2b..a119c99ed 100644
--- a/tests/auto/input/physicaldeviceproxy/tst_physicaldeviceproxy.cpp
+++ b/tests/auto/input/physicaldeviceproxy/tst_physicaldeviceproxy.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/qabstractaxisinput/CMakeLists.txt b/tests/auto/input/qabstractaxisinput/CMakeLists.txt
index 28d7f53b2..44721bf29 100644
--- a/tests/auto/input/qabstractaxisinput/CMakeLists.txt
+++ b/tests/auto/input/qabstractaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qabstractaxisinput.pro.
#####################################################################
## tst_qabstractaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qabstractaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qabstractaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qabstractaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qabstractaxisinput/qabstractaxisinput.pro b/tests/auto/input/qabstractaxisinput/qabstractaxisinput.pro
deleted file mode 100644
index 33d3ffb1c..000000000
--- a/tests/auto/input/qabstractaxisinput/qabstractaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qabstractaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qabstractaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp b/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
index 5b59a8de0..0773f2a64 100644
--- a/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
+++ b/tests/auto/input/qabstractaxisinput/tst_qabstractaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qabstractphysicaldevicebackendnode/CMakeLists.txt b/tests/auto/input/qabstractphysicaldevicebackendnode/CMakeLists.txt
index 2d42dd1f7..c69292b6d 100644
--- a/tests/auto/input/qabstractphysicaldevicebackendnode/CMakeLists.txt
+++ b/tests/auto/input/qabstractphysicaldevicebackendnode/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qabstractphysicaldevicebackendnode.pro.
#####################################################################
## tst_qabstractphysicaldevicebackendnode Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qabstractphysicaldevicebackendnode LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qabstractphysicaldevicebackendnode
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qabstractphysicaldevicebackendnode.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qabstractphysicaldevicebackendnode/qabstractphysicaldevicebackendnode.pro b/tests/auto/input/qabstractphysicaldevicebackendnode/qabstractphysicaldevicebackendnode.pro
deleted file mode 100644
index dc1734c41..000000000
--- a/tests/auto/input/qabstractphysicaldevicebackendnode/qabstractphysicaldevicebackendnode.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qabstractphysicaldevicebackendnode
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qabstractphysicaldevicebackendnode.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qabstractphysicaldevicebackendnode/tst_qabstractphysicaldevicebackendnode.cpp b/tests/auto/input/qabstractphysicaldevicebackendnode/tst_qabstractphysicaldevicebackendnode.cpp
index a0e910c77..f5dc85a91 100644
--- a/tests/auto/input/qabstractphysicaldevicebackendnode/tst_qabstractphysicaldevicebackendnode.cpp
+++ b/tests/auto/input/qabstractphysicaldevicebackendnode/tst_qabstractphysicaldevicebackendnode.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Paul Lemire <paul.lemire350@gmail.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Paul Lemire <paul.lemire350@gmail.com>
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/qabstractphysicaldeviceproxy/CMakeLists.txt b/tests/auto/input/qabstractphysicaldeviceproxy/CMakeLists.txt
index e1d6aac23..c6b4834c2 100644
--- a/tests/auto/input/qabstractphysicaldeviceproxy/CMakeLists.txt
+++ b/tests/auto/input/qabstractphysicaldeviceproxy/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qabstractphysicaldeviceproxy.pro.
#####################################################################
## tst_qabstractphysicaldeviceproxy Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qabstractphysicaldeviceproxy LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qabstractphysicaldeviceproxy
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qabstractphysicaldeviceproxy.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qabstractphysicaldeviceproxy/qabstractphysicaldeviceproxy.pro b/tests/auto/input/qabstractphysicaldeviceproxy/qabstractphysicaldeviceproxy.pro
deleted file mode 100644
index 6aa43f276..000000000
--- a/tests/auto/input/qabstractphysicaldeviceproxy/qabstractphysicaldeviceproxy.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qabstractphysicaldeviceproxy
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qabstractphysicaldeviceproxy.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp b/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
index f17fba297..49231caf7 100644
--- a/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
+++ b/tests/auto/input/qabstractphysicaldeviceproxy/tst_qabstractphysicaldeviceproxy.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/qaction/CMakeLists.txt b/tests/auto/input/qaction/CMakeLists.txt
index 724ef0b7a..aba07eb03 100644
--- a/tests/auto/input/qaction/CMakeLists.txt
+++ b/tests/auto/input/qaction/CMakeLists.txt
@@ -1,20 +1,30 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qaction.pro.
#####################################################################
## tst_qaction Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qt3d_qaction LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
# special case begin
qt_internal_add_test(tst_qt3d_qaction
# special case end
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qaction.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qaction/qaction.pro b/tests/auto/input/qaction/qaction.pro
deleted file mode 100644
index 7d4fba21f..000000000
--- a/tests/auto/input/qaction/qaction.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qaction
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qaction.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qaction/tst_qaction.cpp b/tests/auto/input/qaction/tst_qaction.cpp
index dc8f5cbc7..32f80d82c 100644
--- a/tests/auto/input/qaction/tst_qaction.cpp
+++ b/tests/auto/input/qaction/tst_qaction.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qactioninput/CMakeLists.txt b/tests/auto/input/qactioninput/CMakeLists.txt
index 186b30b49..6361456f1 100644
--- a/tests/auto/input/qactioninput/CMakeLists.txt
+++ b/tests/auto/input/qactioninput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qactioninput.pro.
#####################################################################
## tst_qactioninput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qactioninput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qactioninput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qactioninput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qactioninput/qactioninput.pro b/tests/auto/input/qactioninput/qactioninput.pro
deleted file mode 100644
index c2bc3c54a..000000000
--- a/tests/auto/input/qactioninput/qactioninput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qactioninput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qactioninput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qactioninput/tst_qactioninput.cpp b/tests/auto/input/qactioninput/tst_qactioninput.cpp
index 86bcd82ec..21079639c 100644
--- a/tests/auto/input/qactioninput/tst_qactioninput.cpp
+++ b/tests/auto/input/qactioninput/tst_qactioninput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/qnodeid.h>
diff --git a/tests/auto/input/qanalogaxisinput/CMakeLists.txt b/tests/auto/input/qanalogaxisinput/CMakeLists.txt
index 147ff97c3..41d9649a8 100644
--- a/tests/auto/input/qanalogaxisinput/CMakeLists.txt
+++ b/tests/auto/input/qanalogaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qanalogaxisinput.pro.
#####################################################################
## tst_qanalogaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qanalogaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qanalogaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qanalogaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qanalogaxisinput/qanalogaxisinput.pro b/tests/auto/input/qanalogaxisinput/qanalogaxisinput.pro
deleted file mode 100644
index 6bdc6f021..000000000
--- a/tests/auto/input/qanalogaxisinput/qanalogaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qanalogaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qanalogaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp b/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
index 07149afef..e0e38fa37 100644
--- a/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
+++ b/tests/auto/input/qanalogaxisinput/tst_qanalogaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qaxis/CMakeLists.txt b/tests/auto/input/qaxis/CMakeLists.txt
index f9c77e495..10a2d5986 100644
--- a/tests/auto/input/qaxis/CMakeLists.txt
+++ b/tests/auto/input/qaxis/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qaxis.pro.
#####################################################################
## tst_qaxis Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qaxis LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qaxis
SOURCES
tst_qaxis.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qaxis/qaxis.pro b/tests/auto/input/qaxis/qaxis.pro
deleted file mode 100644
index e52f9f68d..000000000
--- a/tests/auto/input/qaxis/qaxis.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qaxis
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qaxis.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/qaxis/tst_qaxis.cpp b/tests/auto/input/qaxis/tst_qaxis.cpp
index e57b02bb3..5092292e6 100644
--- a/tests/auto/input/qaxis/tst_qaxis.cpp
+++ b/tests/auto/input/qaxis/tst_qaxis.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qaxisaccumulator/CMakeLists.txt b/tests/auto/input/qaxisaccumulator/CMakeLists.txt
index 86337c38e..e52fc584f 100644
--- a/tests/auto/input/qaxisaccumulator/CMakeLists.txt
+++ b/tests/auto/input/qaxisaccumulator/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qaxisaccumulator.pro.
#####################################################################
## tst_qaxisaccumulator Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qaxisaccumulator LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qaxisaccumulator
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qaxisaccumulator.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qaxisaccumulator/qaxisaccumulator.pro b/tests/auto/input/qaxisaccumulator/qaxisaccumulator.pro
deleted file mode 100644
index 4c4b4a4eb..000000000
--- a/tests/auto/input/qaxisaccumulator/qaxisaccumulator.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qaxisaccumulator
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qaxisaccumulator.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qaxisaccumulator/tst_qaxisaccumulator.cpp b/tests/auto/input/qaxisaccumulator/tst_qaxisaccumulator.cpp
index fea5d925a..ae062faac 100644
--- a/tests/auto/input/qaxisaccumulator/tst_qaxisaccumulator.cpp
+++ b/tests/auto/input/qaxisaccumulator/tst_qaxisaccumulator.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qbuttonaxisinput/CMakeLists.txt b/tests/auto/input/qbuttonaxisinput/CMakeLists.txt
index 36698b66a..e0e959218 100644
--- a/tests/auto/input/qbuttonaxisinput/CMakeLists.txt
+++ b/tests/auto/input/qbuttonaxisinput/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qbuttonaxisinput.pro.
#####################################################################
## tst_qbuttonaxisinput Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qbuttonaxisinput LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qbuttonaxisinput
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qbuttonaxisinput.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qbuttonaxisinput/qbuttonaxisinput.pro b/tests/auto/input/qbuttonaxisinput/qbuttonaxisinput.pro
deleted file mode 100644
index 4a35ee7b4..000000000
--- a/tests/auto/input/qbuttonaxisinput/qbuttonaxisinput.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qbuttonaxisinput
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qbuttonaxisinput.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp b/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
index 19a754ae3..0b024a6f0 100644
--- a/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
+++ b/tests/auto/input/qbuttonaxisinput/tst_qbuttonaxisinput.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qkeyboardhandler/CMakeLists.txt b/tests/auto/input/qkeyboardhandler/CMakeLists.txt
index 452292249..0c26f6e7d 100644
--- a/tests/auto/input/qkeyboardhandler/CMakeLists.txt
+++ b/tests/auto/input/qkeyboardhandler/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qkeyboardhandler.pro.
#####################################################################
## tst_qkeyboardhandler Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qkeyboardhandler LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qkeyboardhandler
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qkeyboardhandler.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qkeyboardhandler/qkeyboardhandler.pro b/tests/auto/input/qkeyboardhandler/qkeyboardhandler.pro
deleted file mode 100644
index 0fc435371..000000000
--- a/tests/auto/input/qkeyboardhandler/qkeyboardhandler.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qkeyboardhandler
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qkeyboardhandler.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qkeyboardhandler/tst_qkeyboardhandler.cpp b/tests/auto/input/qkeyboardhandler/tst_qkeyboardhandler.cpp
index 7f1b7af62..43de5a259 100644
--- a/tests/auto/input/qkeyboardhandler/tst_qkeyboardhandler.cpp
+++ b/tests/auto/input/qkeyboardhandler/tst_qkeyboardhandler.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qlogicaldevice/CMakeLists.txt b/tests/auto/input/qlogicaldevice/CMakeLists.txt
index f29fdc820..7fff61cff 100644
--- a/tests/auto/input/qlogicaldevice/CMakeLists.txt
+++ b/tests/auto/input/qlogicaldevice/CMakeLists.txt
@@ -1,15 +1,24 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qlogicaldevice.pro.
#####################################################################
## tst_qlogicaldevice Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qlogicaldevice LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qlogicaldevice
SOURCES
tst_qlogicaldevice.cpp
INCLUDE_DIRECTORIES
../../core/common
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qlogicaldevice/qlogicaldevice.pro b/tests/auto/input/qlogicaldevice/qlogicaldevice.pro
deleted file mode 100644
index f8dfef11c..000000000
--- a/tests/auto/input/qlogicaldevice/qlogicaldevice.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qlogicaldevice
-
-QT += core-private 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qlogicaldevice.cpp
-
-include(../../core/common/common.pri)
diff --git a/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp b/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
index 6e3616368..0e1f53482 100644
--- a/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
+++ b/tests/auto/input/qlogicaldevice/tst_qlogicaldevice.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
#include <Qt3DCore/private/qnode_p.h>
diff --git a/tests/auto/input/qmousedevice/CMakeLists.txt b/tests/auto/input/qmousedevice/CMakeLists.txt
index 62e3247ec..4d2ef8135 100644
--- a/tests/auto/input/qmousedevice/CMakeLists.txt
+++ b/tests/auto/input/qmousedevice/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qmousedevice.pro.
#####################################################################
## tst_qmousedevice Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qmousedevice LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_qmousedevice
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qmousedevice.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qmousedevice/qmousedevice.pro b/tests/auto/input/qmousedevice/qmousedevice.pro
deleted file mode 100644
index 52bbc5a9e..000000000
--- a/tests/auto/input/qmousedevice/qmousedevice.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qmousedevice
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qmousedevice.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qmousedevice/tst_qmousedevice.cpp b/tests/auto/input/qmousedevice/tst_qmousedevice.cpp
index cd899d661..1ef2de833 100644
--- a/tests/auto/input/qmousedevice/tst_qmousedevice.cpp
+++ b/tests/auto/input/qmousedevice/tst_qmousedevice.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
@@ -85,7 +60,7 @@ private Q_SLOTS:
// THEN
QVERIFY(spy.isValid());
QCOMPARE(mouseDevice.sensitivity(), newValue);
- QCOMPARE(spy.count(), 1);
+ QCOMPARE(spy.size(), 1);
// WHEN
spy.clear();
@@ -93,7 +68,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(mouseDevice.sensitivity(), newValue);
- QCOMPARE(spy.count(), 0);
+ QCOMPARE(spy.size(), 0);
}
{
// WHEN
@@ -104,7 +79,7 @@ private Q_SLOTS:
// THEN
QVERIFY(spy.isValid());
QCOMPARE(mouseDevice.updateAxesContinuously(), newValue);
- QCOMPARE(spy.count(), 1);
+ QCOMPARE(spy.size(), 1);
// WHEN
spy.clear();
@@ -112,7 +87,7 @@ private Q_SLOTS:
// THEN
QCOMPARE(mouseDevice.updateAxesContinuously(), newValue);
- QCOMPARE(spy.count(), 0);
+ QCOMPARE(spy.size(), 0);
}
}
diff --git a/tests/auto/input/qmouseevent/CMakeLists.txt b/tests/auto/input/qmouseevent/CMakeLists.txt
index 8a2e0bb8b..ccc8bff78 100644
--- a/tests/auto/input/qmouseevent/CMakeLists.txt
+++ b/tests/auto/input/qmouseevent/CMakeLists.txt
@@ -1,20 +1,30 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from qmouseevent.pro.
#####################################################################
## tst_qmouseevent Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_qt3d_qmouseevent LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
#special case begin
qt_internal_add_test(tst_qt3d_qmouseevent
#special case end
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_qmouseevent.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/qmouseevent/qmouseevent.pro b/tests/auto/input/qmouseevent/qmouseevent.pro
deleted file mode 100644
index 70f4c6eda..000000000
--- a/tests/auto/input/qmouseevent/qmouseevent.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_qmouseevent
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_qmouseevent.cpp
-
-include(../commons/commons.pri)
diff --git a/tests/auto/input/qmouseevent/tst_qmouseevent.cpp b/tests/auto/input/qmouseevent/tst_qmouseevent.cpp
index b48afb99d..6e0b1a118 100644
--- a/tests/auto/input/qmouseevent/tst_qmouseevent.cpp
+++ b/tests/auto/input/qmouseevent/tst_qmouseevent.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB).
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/utils/CMakeLists.txt b/tests/auto/input/utils/CMakeLists.txt
index 0ff18ec4d..a1e4aa32b 100644
--- a/tests/auto/input/utils/CMakeLists.txt
+++ b/tests/auto/input/utils/CMakeLists.txt
@@ -1,18 +1,28 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from utils.pro.
#####################################################################
## tst_utils Test:
#####################################################################
+if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
+ cmake_minimum_required(VERSION 3.16)
+ project(tst_utils LANGUAGES CXX)
+ find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
+endif()
+
qt_internal_add_test(tst_utils
SOURCES
../commons/testdevice.h
+ ../commons/testdevice.cpp
../commons/testdeviceproxy.h
tst_utils.cpp
INCLUDE_DIRECTORIES
../../core/common
../commons
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::3DCore
Qt::3DCorePrivate
Qt::3DInput
diff --git a/tests/auto/input/utils/tst_utils.cpp b/tests/auto/input/utils/tst_utils.cpp
index 5e791b99e..b20eb2697 100644
--- a/tests/auto/input/utils/tst_utils.cpp
+++ b/tests/auto/input/utils/tst_utils.cpp
@@ -1,30 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Paul Lemire <paul.lemire350@gmail.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt3D module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2016 Paul Lemire <paul.lemire350@gmail.com>
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest/QTest>
diff --git a/tests/auto/input/utils/utils.pro b/tests/auto/input/utils/utils.pro
deleted file mode 100644
index 7ee2c27d8..000000000
--- a/tests/auto/input/utils/utils.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-TARGET = tst_utils
-
-QT += 3dcore 3dcore-private 3dinput 3dinput-private testlib
-
-CONFIG += testcase
-
-SOURCES += tst_utils.cpp
-
-include(../commons/commons.pri)