diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2016-02-24 13:13:09 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2016-03-02 21:24:54 +0000 |
commit | 76f6ceec36b33c55876ecd6691ff912a143b1899 (patch) | |
tree | 43d81984a1b5929abf24bfa84e568ff1722923e5 /mkspecs/features/testcase_targets.prf | |
parent | afe3c30759d1bf9f52278d8dc40f85a93a1d963b (diff) |
mkspecs: Add a benchmark "feature".
Testcases and benchmarks are rather different entities. You won't usually want
to run benchmarks in the same environment you are wanting to run tests in,
so this feature allows to differentiate between the two.
We also add a "benchmark" make target (similar to check), which runs all
configured benchmarks.
Change-Id: I33759ce44c34e42a6a3a88f34e7b9c4372380721
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/testcase_targets.prf')
-rw-r--r-- | mkspecs/features/testcase_targets.prf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/testcase_targets.prf b/mkspecs/features/testcase_targets.prf index e9b107735a..16ec6a9f0d 100644 --- a/mkspecs/features/testcase_targets.prf +++ b/mkspecs/features/testcase_targets.prf @@ -7,3 +7,13 @@ check.depends = first # `make check' implies build QMAKE_EXTRA_TARGETS += check } + +# ... and the same for benchmarks, too. +!contains(QMAKE_EXTRA_TARGETS, benchmark) { + contains(TEMPLATE, subdirs): \ + prepareRecursiveTarget(benchmark) + else: \ + benchmark.depends = first # `make benchmark' implies build + QMAKE_EXTRA_TARGETS += benchmark +} + |