summaryrefslogtreecommitdiff
path: root/tests/auto/cmdlineparser
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-07-23 12:30:45 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-07-23 14:39:09 +0200
commit57e4655e07087a50dfbdd3b9d6886c941bb2ff6f (patch)
tree4b5a0a1f7d41ddc6198214f23e20459476ec5adc /tests/auto/cmdlineparser
parent1670c3af43c7af113b9f6eadc1d30d1e271cfc6c (diff)
downloadqbs-57e4655e07087a50dfbdd3b9d6886c941bb2ff6f.tar.gz
add build option --check-timestamps
Give users the possibility to force qbs to read the physical timestamps instead of using the stored timestamps. Task-number: QBS-303 Change-Id: I6010515b5e8f97ec0b91069cbc7d8a1b0931dce5 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/cmdlineparser')
-rw-r--r--tests/auto/cmdlineparser/tst_cmdlineparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
index 41a09d22a..469e4e51c 100644
--- a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
+++ b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
@@ -64,6 +64,7 @@ private slots:
args << "--products" << "blubb";
args << "--changed-files" << "foo,bar" << fileArgs;
args << "--force";
+ args << "--check-timestamps";
CommandLineParser parser;
QVERIFY(parser.parseCommandLine(args, settings.data()));
@@ -73,6 +74,7 @@ private slots:
QCOMPARE(parser.buildOptions().changedFiles().count(), 2);
QVERIFY(parser.buildOptions().keepGoing());
QVERIFY(parser.force());
+ QVERIFY(parser.forceTimestampCheck());
QVERIFY(!parser.logTime());
QCOMPARE(parser.buildConfigurations().count(), 1);