From f01c91d2804deae604c46bf455864e32fce3e755 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 9 May 2014 17:17:07 +0200 Subject: 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 Reviewed-by: Christian Kandeler --- .../blackbox/testdata/dynamicRuleOutputs/before/genlexer.qbs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/auto/blackbox/testdata') 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"] -- cgit v1.2.3