Files
qt-creator/src/plugins/autotest/boost/boosttestoutputreader.h
Jarek Kobus 470c95c94b Utils: Rename QtcProcess -> Process
Task-number: QTCREATORBUG-29102
Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-05-04 05:52:16 +00:00

45 lines
1.3 KiB
C++

// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "../testoutputreader.h"
namespace Autotest {
namespace Internal {
enum class LogLevel;
enum class ReportLevel;
class BoostTestOutputReader : public TestOutputReader
{
Q_OBJECT
public:
BoostTestOutputReader(Utils::Process *testApplication, const Utils::FilePath &buildDirectory,
const Utils::FilePath &projectFile, LogLevel log, ReportLevel report);
protected:
void processOutputLine(const QByteArray &outputLine) override;
void processStdError(const QByteArray &outputLine) override;
TestResult createDefaultResult() const override;
private:
void onDone(int exitCode);
void sendCompleteInformation();
void handleMessageMatch(const QRegularExpressionMatch &match);
void reportNoOutputFinish(const QString &description, ResultType type);
Utils::FilePath m_projectFile;
QString m_currentModule;
QString m_currentSuite;
QString m_currentTest;
QString m_description;
Utils::FilePath m_fileName;
ResultType m_result = ResultType::Invalid;
int m_lineNumber = 0;
int m_testCaseCount = -1;
LogLevel m_logLevel;
ReportLevel m_reportLevel;
};
} // namespace Internal
} // namespace Autotest