diff options
authorRohan McGovern <>2011-08-29 09:24:37 +1000
committerJo Asplin <>2011-08-29 09:29:43 +0200
commitc7013eea5925ff296df06081e7accc057b03c980 (patch)
parenta001bde5bfc8b782231d7f9c42dbeb82ff25fc81 (diff)
test: removed obsolete tst_maketestselftest::tests_auto_pro
This test attempted to ensure that tests/auto/ would only refer to other .pro files, attempting to guarantee that the set of all tests could be cleanly broken up. The purpose of this was to enable CI optimizations (e.g. running the autotests for different modules on different machines in parallel). This test is invalidated by pending commits which rearrange the autotests, and we never made use of this property for optimization anyway, so drop this part of the test. Change-Id: I23e712fb8ec1dbe7ac65fe66015e1f060f3dcd41 Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Jo Asplin <>
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/auto/maketestselftest/tst_maketestselftest.cpp b/tests/auto/maketestselftest/tst_maketestselftest.cpp
index 07c68ac7ec..59dd43cb40 100644
--- a/tests/auto/maketestselftest/tst_maketestselftest.cpp
+++ b/tests/auto/maketestselftest/tst_maketestselftest.cpp
@@ -58,8 +58,6 @@ class tst_MakeTestSelfTest: public QObject
private slots:
- void tests_auto_pro();
void tests_pro_files();
void tests_pro_files_data();
@@ -78,30 +76,6 @@ bool looks_like_testcase(QString const&,QString*);
bool looks_like_subdirs(QString const&);
QStringList find_test_class(QString const&);
- Verify that only contains other .pro files (and not directories).
- We enforce this so that we can process every .pro file other than
- independently and get all the tests.
- If tests were allowed to appear directly in, we'd have the problem
- that we need to somehow run these tests from while preventing
- recursion into the other .pro files.
-void tst_MakeTestSelfTest::tests_auto_pro()
- QStringList subdirsList = find_subdirs(SRCDIR "/../", Flat);
- if (QTest::currentTestFailed()) {
- return;
- }
- foreach (QString const& subdir, subdirsList) {
- QVERIFY2(subdir.endsWith(".pro"), qPrintable(QString(
- " contains a subdir `%1'.\n"
- " must _only_ contain other .pro files, not actual subdirs.\n"
- "Please move `%1' into some other .pro file referenced by"
- ).arg(subdir)));
- }
/* Verify that all tests are listed somewhere in one of the autotest .pro files */
void tst_MakeTestSelfTest::tests_pro_files()