ClangTools: Generalize unit tests

Add an option to run different tools.

Change-Id: Iaf5c928663a888526eba9ee9d1fcea59e6083488
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-04-24 15:30:19 +02:00
parent b57ce2d7a6
commit 43072e82d2
6 changed files with 45 additions and 32 deletions

View File

@@ -34,7 +34,7 @@
#ifdef WITH_TESTS
#include "clangstaticanalyzerpreconfiguredsessiontests.h"
#include "clangstaticanalyzerunittests.h"
#include "clangtoolsunittests.h"
#endif
#include <debugger/analyzer/analyzericons.h>
@@ -135,7 +135,7 @@ QList<QObject *> ClangToolsPlugin::createTestObjects() const
QList<QObject *> tests;
#ifdef WITH_TESTS
tests << new ClangStaticAnalyzerPreconfiguredSessionTests;
tests << new ClangStaticAnalyzerUnitTests;
tests << new ClangToolsUnitTests;
#endif
return tests;
}