File is is part of the internal test infrastructure. According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Ia5bc4e0abeea210ee501596330b2b63216e9e9c7 Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
19 lines
544 B
C++
19 lines
544 B
C++
// Copyright (C) 2022 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
|
|
|
#include <QList>
|
|
#include <QString>
|
|
#include <QtTest/private/qtestcase_p.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc == 1) {
|
|
printf("%s\n", QTest::qGetTestCaseNames().join(
|
|
QStringLiteral(" ")).toStdString().c_str());
|
|
return 0;
|
|
}
|
|
|
|
const auto entryFunction = QTest::qGetTestCaseEntryFunction(QString::fromUtf8(argv[1]));
|
|
return entryFunction ? entryFunction(argc - 1, argv + 1) : -1;
|
|
}
|