From a1121b977e84590b8e8c6000b40b8bd90ec9c690 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 11 Oct 2011 18:21:54 +1000 Subject: [PATCH] Make test .pro files more consistent. Make the parent .pro files follow the pattern of listing all tests in one place and then removing inapplicable tests as needed. Change-Id: Ide1ae98d50dd63cd8c1b4d6fd53135cdff801bc3 Reviewed-by: Rohan McGovern --- tests/auto/auto.pro | 17 +++++++++++------ tests/auto/other.pro | 30 ++++++++++++++++++------------ tests/auto/other/other.pro | 13 ++++++++----- 3 files changed, 37 insertions(+), 23 deletions(-) diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 5eda1236b7..86fe037887 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -2,15 +2,20 @@ TEMPLATE = subdirs SUBDIRS += \ corelib.pro \ + dbus \ + host.pro \ gui.pro \ network.pro \ + opengl \ sql \ - xml \ testlib \ + tools \ + v8.pro \ + xml \ other.pro \ -!cross_compile: SUBDIRS += host.pro -!cross_compile: SUBDIRS += tools -contains(QT_CONFIG, opengl): SUBDIRS += opengl -unix:!embedded:contains(QT_CONFIG, dbus): SUBDIRS += dbus -contains(QT_CONFIG, v8): SUBDIRS += v8.pro +cross_compile: SUBDIRS -= host.pro +cross_compile: SUBDIRS -= tools +!contains(QT_CONFIG, opengl): SUBDIRS -= opengl +!unix|embedded|!contains(QT_CONFIG, dbus): SUBDIRS -= dbus +!contains(QT_CONFIG, v8): SUBDIRS -= v8.pro diff --git a/tests/auto/other.pro b/tests/auto/other.pro index 0381b6c89d..913ed31b9a 100644 --- a/tests/auto/other.pro +++ b/tests/auto/other.pro @@ -5,14 +5,22 @@ TEMPLATE=subdirs SUBDIRS=\ other \ # baselineexample \ Just an example demonstrating qbaselinetest usage + exceptionsafety_objects \ lancelot \ + macgui \ + macnativeevents \ + macplist \ qaccessibility \ + qaccessibility_mac \ qcombobox \ + qcopchannel \ + qdirectpainter \ qfocusevent \ qlayout \ qmdiarea \ qmenu \ qmenubar \ + qmultiscreen \ qsplitter \ qtabwidget \ qtextbrowser \ @@ -25,20 +33,18 @@ SUBDIRS=\ wince*|!contains(QT_CONFIG, accessibility):SUBDIRS -= qaccessibility -mac:!qpa { - SUBDIRS += macgui \ - macnativeevents \ - macplist \ - qaccessibility_mac -} +!mac|qpa: SUBDIRS -= \ + macgui \ + macnativeevents \ + macplist \ + qaccessibility_mac \ -embedded:!wince* { - SUBDIRS += qcopchannel \ - qdirectpainter \ - qmultiscreen -} +!embedded|wince*: SUBDIRS -= \ + qcopchannel \ + qdirectpainter \ + qmultiscreen \ -!win32-msvc*:!wince*:SUBDIRS += exceptionsafety_objects +win32-msvc*|wince*:SUBDIRS -= exceptionsafety_objects # Following tests depends on private API !contains(QT_CONFIG, private_tests): SUBDIRS -= \ diff --git a/tests/auto/other/other.pro b/tests/auto/other/other.pro index ae9659cadc..9f07100d3b 100644 --- a/tests/auto/other/other.pro +++ b/tests/auto/other/other.pro @@ -1,10 +1,13 @@ TEMPLATE=subdirs SUBDIRS=\ - qtmd5 \ - qtokenautomaton \ + # atwrapper \ # QTBUG-19452 baselineexample \ - -!cross_compile: SUBDIRS += \ compiler \ headersclean \ - # atwrapper \ # QTBUG-19452 + qtmd5 \ + qtokenautomaton \ + +cross_compile: SUBDIRS -= \ + atwrapper \ + compiler \ + headersclean \