From 9ba41df61bf3c7b3684716e5d8decb07dd258ead Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 11 Mar 2015 22:26:48 +0100 Subject: [PATCH] Rename unit tests which use the ProxyModelTestSuite. Clear the namespace for unit tests which look like normal Qt unit tests. --- autotests/CMakeLists.txt | 8 ++++---- ...modeltest.cpp => kdescendantsproxymodel_smoketest.cpp} | 3 +-- ...xymodeltest.cpp => kselectionproxymodel_smoketest.cpp} | 0 3 files changed, 5 insertions(+), 6 deletions(-) rename autotests/{kdescendantsproxymodeltest.cpp => kdescendantsproxymodel_smoketest.cpp} (99%) rename autotests/{kselectionproxymodeltest.cpp => kselectionproxymodel_smoketest.cpp} (100%) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index f3918bb..36b1189 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -1,5 +1,5 @@ -set(proxyModelTestSources +set(proxyModelSmokeTestSources kselectionproxymodeltestsuite.cpp ) @@ -15,15 +15,15 @@ add_subdirectory(proxymodeltestsuite) include(ECMAddTests) ecm_add_tests( - kdescendantsproxymodeltest.cpp + kdescendantsproxymodel_smoketest.cpp klinkitemselectionmodeltest.cpp testmodelqueuedconnections.cpp LINK_LIBRARIES KF5::ItemModels Qt5::Test Qt5::Widgets proxymodeltestsuite ) #we need additional sources for this test, can't use it in ecm_add_tests -ecm_add_test(kselectionproxymodeltest.cpp ${proxyModelTestSources} - TEST_NAME "kselectionproxymodeltest" +ecm_add_test(kselectionproxymodel_smoketest.cpp ${proxyModelSmokeTestSources} + TEST_NAME "kselectionproxymodel_smoketest" LINK_LIBRARIES KF5::ItemModels Qt5::Test Qt5::Widgets proxymodeltestsuite ) diff --git a/autotests/kdescendantsproxymodeltest.cpp b/autotests/kdescendantsproxymodel_smoketest.cpp similarity index 99% rename from autotests/kdescendantsproxymodeltest.cpp rename to autotests/kdescendantsproxymodel_smoketest.cpp index a594b15..92b86a5 100644 --- a/autotests/kdescendantsproxymodeltest.cpp +++ b/autotests/kdescendantsproxymodel_smoketest.cpp @@ -255,5 +255,4 @@ PROXYMODELTEST_MAIN(DescendantsProxyModelTest, PROXYMODELTEST_CUSTOM(new TestData, IntermediateProxy, LazyPersistence, "") ) -#include "kdescendantsproxymodeltest.moc" - +#include "kdescendantsproxymodel_smoketest.moc" diff --git a/autotests/kselectionproxymodeltest.cpp b/autotests/kselectionproxymodel_smoketest.cpp similarity index 100% rename from autotests/kselectionproxymodeltest.cpp rename to autotests/kselectionproxymodel_smoketest.cpp