aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/tst_blackbox.h
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-11-20 17:09:41 -0500
committerJake Petroules <jake.petroules@petroules.com>2013-11-26 16:13:35 +0100
commitdbb39fc1fce3686a5161d68e89e96086fc664556 (patch)
tree7651a5a1e885805eaec99105abcaf61bd865667f /tests/auto/blackbox/tst_blackbox.h
parentd7656eef2decad018759cae7f18c4e66c3a688bf (diff)
Support specifying the Qbs build directory as a command line option.
Also supports changing the default build directory ('.') using the 'preferences.defaultBuildDirectory' property. Task-number: QBS-462 Change-Id: Id3d05d2f5b14197bd3af2e7f9d55bdd263809716 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/tst_blackbox.h')
-rw-r--r--tests/auto/blackbox/tst_blackbox.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.h b/tests/auto/blackbox/tst_blackbox.h
index 43c1d1d12..64ccf84b9 100644
--- a/tests/auto/blackbox/tst_blackbox.h
+++ b/tests/auto/blackbox/tst_blackbox.h
@@ -45,12 +45,14 @@ public:
init();
}
- QbsRunParameters(const QStringList &args) : arguments(args)
+ QbsRunParameters(const QString &cmd, const QStringList &args = QStringList())
+ : command(cmd), arguments(args)
{
init();
}
- QbsRunParameters(const QString &arg) : arguments(arg)
+ QbsRunParameters(const QStringList &args)
+ : arguments(args)
{
init();
}
@@ -62,6 +64,7 @@ public:
environment = QProcessEnvironment::systemEnvironment();
}
+ QString command;
QStringList arguments;
QProcessEnvironment environment;
bool expectFailure;