Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/testing/ctestsuite.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | namespace KDevelop { | 28 | namespace KDevelop { | ||
29 | class ReferencedTopDUContext; | 29 | class ReferencedTopDUContext; | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | class CTestSuite : public KDevelop::ITestSuite | 32 | class CTestSuite : public KDevelop::ITestSuite | ||
33 | { | 33 | { | ||
34 | public: | 34 | public: | ||
35 | CTestSuite(const QString& name, const KDevelop::Path &executable, const QList<KDevelop::Path>& files, KDevelop::IProject* project, const QStringList& args, bool expectFail); | 35 | CTestSuite(const QString& name, const KDevelop::Path &executable, const QList<KDevelop::Path>& files, KDevelop::IProject* project, const QStringList& args, const QHash<QString, QString>& properties); | ||
36 | virtual ~CTestSuite(); | 36 | virtual ~CTestSuite(); | ||
37 | 37 | | |||
38 | virtual KJob* launchCase(const QString& testCase, TestJobVerbosity verbosity); | 38 | virtual KJob* launchCase(const QString& testCase, TestJobVerbosity verbosity); | ||
39 | virtual KJob* launchCases(const QStringList& testCases, TestJobVerbosity verbosity); | 39 | virtual KJob* launchCases(const QStringList& testCases, TestJobVerbosity verbosity); | ||
40 | virtual KJob* launchAllCases(TestJobVerbosity verbosity); | 40 | virtual KJob* launchAllCases(TestJobVerbosity verbosity); | ||
41 | 41 | | |||
42 | virtual KDevelop::Path executable() const; | 42 | virtual KDevelop::Path executable() const; | ||
43 | virtual QStringList cases() const; | 43 | virtual QStringList cases() const; | ||
44 | virtual QString name() const; | 44 | virtual QString name() const; | ||
45 | virtual KDevelop::IProject* project() const; | 45 | virtual KDevelop::IProject* project() const; | ||
46 | 46 | | |||
47 | virtual KDevelop::IndexedDeclaration declaration() const; | 47 | virtual KDevelop::IndexedDeclaration declaration() const; | ||
48 | virtual KDevelop::IndexedDeclaration caseDeclaration(const QString& testCase) const; | 48 | virtual KDevelop::IndexedDeclaration caseDeclaration(const QString& testCase) const; | ||
49 | 49 | | |||
50 | virtual QHash<QString, QString> properties() const; | ||||
51 | | ||||
50 | QStringList arguments() const; | 52 | QStringList arguments() const; | ||
51 | void setTestCases(const QStringList& cases); | 53 | void setTestCases(const QStringList& cases); | ||
52 | QList<KDevelop::Path> sourceFiles() const; | 54 | QList<KDevelop::Path> sourceFiles() const; | ||
53 | void loadDeclarations(const KDevelop::IndexedString& document, const KDevelop::ReferencedTopDUContext& context); | 55 | void loadDeclarations(const KDevelop::IndexedString& document, const KDevelop::ReferencedTopDUContext& context); | ||
54 | 56 | | |||
55 | private: | 57 | private: | ||
56 | KDevelop::Path m_executable; | 58 | KDevelop::Path m_executable; | ||
57 | QString m_name; | 59 | QString m_name; | ||
58 | QStringList m_cases; | 60 | QStringList m_cases; | ||
59 | QStringList m_args; | 61 | QStringList m_args; | ||
60 | QList<KDevelop::Path> m_files; | 62 | QList<KDevelop::Path> m_files; | ||
61 | KDevelop::IProject* m_project; | 63 | KDevelop::IProject* m_project; | ||
62 | 64 | | |||
63 | QHash<QString, KDevelop::IndexedDeclaration> m_declarations; | 65 | QHash<QString, KDevelop::IndexedDeclaration> m_declarations; | ||
66 | QHash<QString, QString> m_properties; | ||||
64 | KDevelop::IndexedDeclaration m_suiteDeclaration; | 67 | KDevelop::IndexedDeclaration m_suiteDeclaration; | ||
65 | | ||||
66 | bool m_expectFail; | | |||
67 | }; | 68 | }; | ||
68 | 69 | | |||
69 | #endif // CTESTSUITE_H | 70 | #endif // CTESTSUITE_H |