diff options
Diffstat (limited to 'hyprtester/src/tests/plugin')
| -rw-r--r-- | hyprtester/src/tests/plugin/plugin.cpp | 21 | ||||
| -rw-r--r-- | hyprtester/src/tests/plugin/plugin.hpp | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/hyprtester/src/tests/plugin/plugin.cpp b/hyprtester/src/tests/plugin/plugin.cpp new file mode 100644 index 00000000..94470d6f --- /dev/null +++ b/hyprtester/src/tests/plugin/plugin.cpp @@ -0,0 +1,21 @@ +#include "plugin.hpp" +#include "../../shared.hpp" +#include "../../hyprctlCompat.hpp" +#include <print> +#include <thread> +#include <chrono> +#include <hyprutils/os/Process.hpp> +#include <hyprutils/memory/WeakPtr.hpp> +#include <csignal> +#include <cerrno> +#include "../shared.hpp" + +bool testPlugin() { + const auto RESPONSE = getFromSocket("/dispatch plugin:test:test"); + + if (RESPONSE != "ok") { + NLog::log("{}Plugin tests failed, plugin returned:\n{}{}", Colors::RED, Colors::RESET, RESPONSE); + return false; + } + return true; +} diff --git a/hyprtester/src/tests/plugin/plugin.hpp b/hyprtester/src/tests/plugin/plugin.hpp new file mode 100644 index 00000000..bd93c087 --- /dev/null +++ b/hyprtester/src/tests/plugin/plugin.hpp @@ -0,0 +1,3 @@ +#pragma once + +bool testPlugin();
\ No newline at end of file |
