File indexing completed on 2024-05-19 04:41:36
0001 /* 0002 SPDX-FileCopyrightText: 2011 Julien Desgats <julien.desgats@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef TEST_QMAKEPROJECT_H 0008 #define TEST_QMAKEPROJECT_H 0009 0010 #include <QObject> 0011 #include <QTemporaryDir> 0012 0013 /** 0014 * Test project handling related features. Very basic at moment, should be completed. 0015 * Project needed for tests are located in manual directory, and path is accessible by 0016 * QMAKE_TESTS_PROJECTS_DIR macro. 0017 */ 0018 class TestQMakeProject : public QObject { 0019 Q_OBJECT 0020 0021 public: 0022 explicit TestQMakeProject(QObject* parent = nullptr); 0023 ~TestQMakeProject() override; 0024 0025 private Q_SLOTS: 0026 void initTestCase(); 0027 void cleanupTestCase(); 0028 0029 void testBuildDirectory_data(); 0030 void testBuildDirectory(); 0031 0032 private: 0033 const QTemporaryDir m_buildDir; 0034 }; 0035 0036 #endif