diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-05-09 17:17:07 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-05-12 11:33:42 +0200 |
commit | f01c91d2804deae604c46bf455864e32fce3e755 (patch) | |
tree | 6936e4ef978f3049bdf282b4eaddcac9f4e4343c /tests/auto/blackbox/testdata | |
parent | ffc982bdc4bf04c95ccf0a56d06ce4f58f1db370 (diff) |
use PathProbe in dynamicRuleOutputs test
That's more generic and adds a Probe usage to the test suite.
Change-Id: I022022f9c1d77d5508fbbe848ce56a73eb115185
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata')
-rw-r--r-- | tests/auto/blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs b/tests/auto/blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs index bb1bcb03f..61504573f 100644 --- a/tests/auto/blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs +++ b/tests/auto/blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs @@ -36,8 +36,8 @@ ****************************************************************************/ import qbs 1.0 -import qbs.File import qbs.FileInfo +import qbs.Probes import qbs.TextFile import "flexoptionsreader.js" as FlexOptionsReader @@ -50,7 +50,12 @@ Project { files: ["numbers.l"] fileTags: ["flex"] } - property bool isFlexAvailable: File.exists("/usr/bin/flex") // ### replace with PathProbe + Probes.PathProbe { + id: flexProbe + names: ["flex"] + platformPaths: ["/usr/local/bin", "/usr/bin", "/bin"] + } + property bool isFlexAvailable: flexProbe.found Rule { inputs: ["flex"] outputFileTags: ["c", "hpp"] |