aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/tst_tools.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2012-10-14 10:42:32 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2012-10-15 14:14:48 +0200
commit650ead9a980d3180060a4d5a8f26900438f9e52a (patch)
tree9b9d1df29eb0640ac48e6e86bf1a74c6458b9b6c /tests/auto/tools/tst_tools.cpp
parent4a8aaf9616fb35dabe9ddec9ccecd3365763fd4f (diff)
Introduce BuildOptions.
This aggregates some build-related options needed by the Executor, who can now receive them via a single setter. Change-Id: I130ef1657ecd7a898a920fa370b876eebd0bc059 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/tools/tst_tools.cpp')
-rw-r--r--tests/auto/tools/tst_tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/tools/tst_tools.cpp b/tests/auto/tools/tst_tools.cpp
index 962e749b7..0835f04ba 100644
--- a/tests/auto/tools/tst_tools.cpp
+++ b/tests/auto/tools/tst_tools.cpp
@@ -48,9 +48,9 @@ private slots:
QVERIFY(options.parseCommandLine(args));
QCOMPARE(qbs::Logger::instance().level(), qbs::LoggerTrace);
QCOMPARE(options.command(), qbs::CommandLineOptions::BuildCommand);
- QCOMPARE(options.selectedProductNames(), QStringList() << "blubb");
- QCOMPARE(options.changedFiles(), QStringList() << "foo" << "bar");
- QVERIFY(options.isKeepGoingSet());
+ QCOMPARE(options.buildOptions().selectedProductNames, QStringList() << "blubb");
+ QCOMPARE(options.buildOptions().changedFiles.count(), 2);
+ QVERIFY(options.buildOptions().keepGoing);
QVERIFY(options.parseCommandLine(QStringList() << "-vvvqqq"));
QCOMPARE(qbs::Logger::instance().level(), qbs::Logger::defaultLevel());
QVERIFY(options.parseCommandLine(QStringList() << "-vvqqq"));