2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-05-11 13:02:42 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-05-26 15:50:03 +02:00
|
|
|
#include <utils/fileutils.h>
|
|
|
|
|
|
2016-11-08 09:46:22 +01:00
|
|
|
#include <QHash>
|
2016-06-07 13:26:08 +02:00
|
|
|
|
2018-08-29 12:33:15 +02:00
|
|
|
namespace Utils { class Environment; }
|
2016-05-11 13:02:42 +02:00
|
|
|
|
|
|
|
|
namespace Autotest {
|
2020-03-13 13:54:33 +01:00
|
|
|
|
|
|
|
|
class ITestFramework;
|
|
|
|
|
|
2016-05-11 13:02:42 +02:00
|
|
|
namespace Internal {
|
2021-04-23 13:40:46 +02:00
|
|
|
|
|
|
|
|
struct TestCase
|
|
|
|
|
{
|
|
|
|
|
QString name;
|
|
|
|
|
bool multipleTestCases;
|
|
|
|
|
};
|
|
|
|
|
using TestCases = QList<TestCase>;
|
|
|
|
|
|
2016-11-08 09:46:22 +01:00
|
|
|
namespace QTestUtils {
|
2016-05-11 13:02:42 +02:00
|
|
|
|
2016-11-08 09:46:22 +01:00
|
|
|
bool isQTestMacro(const QByteArray ¯o);
|
2021-04-23 13:40:46 +02:00
|
|
|
QHash<Utils::FilePath, TestCases> testCaseNamesForFiles(ITestFramework *framework,
|
2023-04-23 17:25:46 +02:00
|
|
|
const QSet<Utils::FilePath> &files);
|
2021-05-26 15:50:03 +02:00
|
|
|
QMultiHash<Utils::FilePath, Utils::FilePath> alternativeFiles(ITestFramework *framework,
|
2023-04-23 17:25:46 +02:00
|
|
|
const QSet<Utils::FilePath> &files);
|
2017-09-01 14:59:39 +02:00
|
|
|
QStringList filterInterfering(const QStringList &provided, QStringList *omitted, bool isQuickTest);
|
2018-08-29 12:33:15 +02:00
|
|
|
Utils::Environment prepareBasicEnvironment(const Utils::Environment &env);
|
2016-05-11 13:02:42 +02:00
|
|
|
|
2016-11-08 09:46:22 +01:00
|
|
|
} // namespace QTestUtils
|
2016-05-11 13:02:42 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Autotest
|