From 3d6476c9021519995239ec93bbb11f0dce6c60a0 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Thu, 26 Jun 2025 19:43:39 +0200 Subject: Core: Add a test suite (#9297) Adds a test suite for testing hyprland's features with a runtime tester --------- Co-authored-by: Mihai Fufezan --- hyprtester/src/tests/plugin/plugin.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hyprtester/src/tests/plugin/plugin.cpp (limited to 'hyprtester/src/tests/plugin/plugin.cpp') 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 +#include +#include +#include +#include +#include +#include +#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; +} -- cgit v1.2.3