summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_static_resources/test_static_resources_propagation/main.cpp
blob: fc048bb61e78293f4df8ddb1986da02537a3013f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include <QtTest/QtTest>
#include <QtCore/qfile.h>
#include <QtCore/qobject.h>
#include <QtPlugin>

class TestStaticResourcePropagation : public QObject
{
    Q_OBJECT
private slots:
    void resourceFilesExist();
};

void TestStaticResourcePropagation::resourceFilesExist()
{
    bool result = QFile::exists(":/teststaticmodule1/testfile1.txt");
    QVERIFY(result);
}

QTEST_MAIN(TestStaticResourcePropagation)
#include "main.moc"