#include "tests.hpp" #include "../../shared.hpp" #include "../../hyprctlCompat.hpp" #include #include #include #include #include #include #include #include "../shared.hpp" static int ret = 0; using namespace Hyprutils::OS; using namespace Hyprutils::Memory; #define UP CUniquePointer #define SP CSharedPointer static bool test() { NLog::log("{}Testing hyprctl", Colors::GREEN); { NLog::log("{}Testing hyprctl descriptions for any json errors", Colors::GREEN); CProcess jqProc("bash", {"-c", "hyprctl descriptions | jq"}); jqProc.addEnv("HYPRLAND_INSTANCE_SIGNATURE", HIS); jqProc.runSync(); EXPECT(jqProc.exitCode(), 0); } return !ret; } REGISTER_TEST_FN(test);