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

#include <QFile>
#include <QtTest>

class TestAddResourcePrefix : public QObject
{
    Q_OBJECT
private slots:
    void resourceInDefaultPathExists();
    void resourceInGivenPathExists();
};

void TestAddResourcePrefix::resourceInDefaultPathExists()
{
    QVERIFY(QFile::exists(":/resource_file.txt"));
}

void TestAddResourcePrefix::resourceInGivenPathExists()
{
    QVERIFY(QFile::exists(":/resources/resource_file.txt"));
}

QTEST_MAIN(TestAddResourcePrefix)
#include "main.moc"