2022-07-12 16:15:24 +00:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2024-02-28 13:08:27 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2022-07-12 16:15:24 +00:00
|
|
|
|
|
|
|
#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;
|
|
|
|
}
|