aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/tst_tools.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-03-15 17:52:09 +0100
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-03-19 15:41:49 +0100
commit22f91daa6177c8c04ed9ef73c4c3c7e2961d3797 (patch)
tree214b6db26c5d931a593696fc04237c8d74adba1c /tests/auto/tools/tst_tools.cpp
parentebc1a4c0a9fd864b999d4c541cfd6ee2f88fa267 (diff)
auto test clean up
Tests for options and tools merged. Test for language features prepared. Change-Id: I98d402ac568625c2a7eb2ab18a63f1db0262bda9 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'tests/auto/tools/tst_tools.cpp')
-rw-r--r--tests/auto/tools/tst_tools.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/tools/tst_tools.cpp b/tests/auto/tools/tst_tools.cpp
index b528ed82b..8f1ec7737 100644
--- a/tests/auto/tools/tst_tools.cpp
+++ b/tests/auto/tools/tst_tools.cpp
@@ -35,13 +35,25 @@
**
**************************************************************************/
+#include <tools/logger.h>
#include <tools/fileinfo.h>
+#include <tools/options.h>
#include <QtTest/QtTest>
class TestFileInfo : public QObject
{
Q_OBJECT
private slots:
+ void testCommandLineOptions()
+ {
+ QStringList args;
+ args.append("-vvvk");
+ qbs::CommandLineOptions options;
+ options.readCommandLineArguments(args);
+ QCOMPARE(qbs::Logger::instance().level(), qbs::LoggerTrace);
+ QCOMPARE(options.command(), qbs::CommandLineOptions::BuildCommand);
+ QVERIFY(options.isKeepGoingSet());
+ }
void testFileInfo()
{
@@ -55,7 +67,6 @@ private slots:
QVERIFY(qbs::FileInfo::isAbsolute("C:\\bla\\lol"));
#endif
QCOMPARE(qbs::FileInfo::resolvePath("/abc/lol", "waffl"), QString("/abc/lol/waffl"));
-
}
};