From 0d19ce31ef01e1884fd7ef8d1b5945e5b082d10e Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Tue, 2 Mar 2021 17:42:50 +0300 Subject: Always build with project file updates support Since QtGui dependency was removed, there is no reason not to Change-Id: Ib8975451f3c36a77e22a077bba18b5659f414767 Reviewed-by: Christian Kandeler Reviewed-by: Denis Shienkov --- tests/auto/api/api.pro | 1 - tests/auto/api/api.qbs | 2 +- tests/auto/api/tst_api.cpp | 4 ---- tests/auto/api/tst_api.h | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/api/api.pro b/tests/auto/api/api.pro index d9c42e7bb..36dcec237 100644 --- a/tests/auto/api/api.pro +++ b/tests/auto/api/api.pro @@ -13,7 +13,6 @@ isEmpty(QBS_RELATIVE_SEARCH_PATH):QBS_RELATIVE_SEARCH_PATH=.. DEFINES += QBS_RELATIVE_LIBEXEC_PATH=\\\"$${QBS_RELATIVE_LIBEXEC_PATH}\\\" DEFINES += QBS_RELATIVE_PLUGINS_PATH=\\\"$${QBS_RELATIVE_PLUGINS_PATH}\\\" DEFINES += QBS_RELATIVE_SEARCH_PATH=\\\"$${QBS_RELATIVE_SEARCH_PATH}\\\" -qbs_enable_project_file_updates:DEFINES += QBS_ENABLE_PROJECT_FILE_UPDATES include(../auto.pri) diff --git a/tests/auto/api/api.qbs b/tests/auto/api/api.qbs index 09e0af7dc..21ff86a90 100644 --- a/tests/auto/api/api.qbs +++ b/tests/auto/api/api.qbs @@ -9,7 +9,7 @@ QbsAutotest { "QBS_RELATIVE_LIBEXEC_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativeLibexecPath), "QBS_RELATIVE_SEARCH_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativeSearchPath), "QBS_RELATIVE_PLUGINS_PATH=" + Utilities.cStringQuote(qbsbuildconfig.relativePluginsPath) - ]).concat(qbsbuildconfig.enableProjectFileUpdates ? ["QBS_ENABLE_PROJECT_FILE_UPDATES"] : []) + ]) Group { name: "testdata" diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp index a51eb3e0c..ac37139a3 100644 --- a/tests/auto/api/tst_api.cpp +++ b/tests/auto/api/tst_api.cpp @@ -620,8 +620,6 @@ qbs::GroupData findGroup(const qbs::ProductData &product, const QString &name) return qbs::GroupData(); } -#ifdef QBS_ENABLE_PROJECT_FILE_UPDATES - static qbs::Project::ProductSelection defaultProducts() { return qbs::Project::ProductSelectionDefaultOnly; @@ -852,8 +850,6 @@ void TestApi::changeContent() QVERIFY2(!job->error().hasError(), qPrintable(job->error().toString())); } -#endif // QBS_ENABLE_PROJECT_FILE_UPDATES - void TestApi::commandExtraction() { qbs::SetupProjectParameters setupParams = defaultSetupParameters("/command-extraction"); diff --git a/tests/auto/api/tst_api.h b/tests/auto/api/tst_api.h index d6514e17c..cca6d4970 100644 --- a/tests/auto/api/tst_api.h +++ b/tests/auto/api/tst_api.h @@ -69,9 +69,7 @@ private slots: void buildProjectDryRun_data(); void buildSingleFile(); void canonicalToolchainList(); -#ifdef QBS_ENABLE_PROJECT_FILE_UPDATES void changeContent(); -#endif void changeDependentLib(); void checkOutputs(); void checkOutputs_data(); -- cgit v1.2.3