From e4b6fedfb96c8796e92f558b281e0dbdab5f5b66 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 27 Jun 2025 12:18:45 +0200 Subject: tester: simplify adding test files --- hyprtester/src/main.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'hyprtester/src/main.cpp') diff --git a/hyprtester/src/main.cpp b/hyprtester/src/main.cpp index 176eb702..6fd42e1a 100644 --- a/hyprtester/src/main.cpp +++ b/hyprtester/src/main.cpp @@ -218,20 +218,9 @@ int main(int argc, char** argv, char** envp) { NLog::log("{}Loaded plugin", Colors::YELLOW); - // now we can start issuing stuff. - NLog::log("{}testing windows", Colors::YELLOW); - EXPECT(testWindows(), true); - - std::this_thread::sleep_for(std::chrono::milliseconds(2000)); - - NLog::log("{}testing groups", Colors::YELLOW); - EXPECT(testGroups(), true); - - NLog::log("{}testing workspaces", Colors::YELLOW); - EXPECT(testWorkspaces(), true); - - NLog::log("{}testing misc variables", Colors::YELLOW); - EXPECT(testMisc(), true); + for (const auto& fn : testFns) { + EXPECT(fn(), true); + } NLog::log("{}running plugin test", Colors::YELLOW); EXPECT(testPlugin(), true); -- cgit v1.2.3