Don't attempt to build benchmarks if release-mode Qt is not available
authorRohan McGovern <rohan.mcgovern@nokia.com>
Tue, 21 Jun 2011 12:04:01 +0000 (14:04 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Tue, 21 Jun 2011 15:44:27 +0000 (17:44 +0200)
All of the benchmarks explicitly turn on release mode.  This fails on
Mac and Windows if Qt is configured as debug-only.  It is also possibly
misleading on Linux, as compiling the benchmark in release mode does
not imply that Qt is compiled in release mode.

The results are generally not useful if release mode Qt is not
available, so disable them by default in this case.

Change-Id: Ifa2bb6ab6412dd360ff9dfb890ace2f51e0eef86
Reviewed-on: http://codereview.qt.nokia.com/549
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jo Asplin <jo.asplin@nokia.com>
tests/tests.pro

index 75ca120..7a4af15 100644 (file)
@@ -1,3 +1,5 @@
 TEMPLATE = subdirs
-SUBDIRS = auto \
-        benchmarks
+SUBDIRS = auto
+
+# benchmarks in debug mode is rarely sensible
+contains(QT_CONFIG,release):SUBDIRS += benchmarks