summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/plugins/imageformats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/plugins/imageformats')
-rw-r--r--tests/benchmarks/plugins/imageformats/jpeg/CMakeLists.txt11
-rw-r--r--tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp31
-rw-r--r--tests/benchmarks/plugins/imageformats/jpeg/jpeg.pro8
3 files changed, 7 insertions, 43 deletions
diff --git a/tests/benchmarks/plugins/imageformats/jpeg/CMakeLists.txt b/tests/benchmarks/plugins/imageformats/jpeg/CMakeLists.txt
index c2586ce86c..814dc124c7 100644
--- a/tests/benchmarks/plugins/imageformats/jpeg/CMakeLists.txt
+++ b/tests/benchmarks/plugins/imageformats/jpeg/CMakeLists.txt
@@ -1,17 +1,14 @@
-# Generated from jpeg.pro.
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## jpeg Binary:
#####################################################################
-qt_add_benchmark(jpeg
+qt_internal_add_benchmark(jpeg
SOURCES
jpeg.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
Qt::Gui
Qt::Test
)
-
-#### Keys ignored in scope 1:.:.:jpeg.pro:<TRUE>:
-# TEMPLATE = "app"
-# TESTDATA = "n900.jpeg"
diff --git a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp b/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
index 319a13e9ed..d73b2477fa 100644
--- a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
+++ b/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
@@ -1,34 +1,9 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite 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 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QDebug>
#include <qtest.h>
-#include <QtTest/QtTest>
+#include <QTest>
#include <QFile>
#include <QByteArray>
#include <QBuffer>
diff --git a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.pro b/tests/benchmarks/plugins/imageformats/jpeg/jpeg.pro
deleted file mode 100644
index 281e79f585..0000000000
--- a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-TEMPLATE = app
-TARGET = jpeg
-QT += testlib
-CONFIG += release
-
-SOURCES += jpeg.cpp
-
-TESTDATA = n900.jpeg