From 702d32b41c1c4f496dba046c2017cb5b907e55cd Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 12 Jan 2023 20:00:40 +0100 Subject: FCGI test --- tests/webserverprocess.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/webserverprocess.h (limited to 'tests/webserverprocess.h') diff --git a/tests/webserverprocess.h b/tests/webserverprocess.h new file mode 100644 index 0000000..5593c70 --- /dev/null +++ b/tests/webserverprocess.h @@ -0,0 +1,30 @@ +#pragma once + +#include + +#include +#include +#include +#include +#include +#include + +class WebserverProcess +{ +private: + void init(const std::string& config); +public: + WebserverProcess(const std::string& config); + WebserverProcess(); + ~WebserverProcess(); + void start(); + void stop(); + bool is_running(); + std::string output(); + +private: + pid_t m_pid; + std::string m_config; + +}; // class WebserverProcess + -- cgit v1.2.3