summaryrefslogtreecommitdiff
path: root/hyprtester/src/main.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-06-27 12:18:45 +0200
committerVaxry <vaxry@vaxry.net>2025-06-27 12:18:45 +0200
commite4b6fedfb96c8796e92f558b281e0dbdab5f5b66 (patch)
tree15d5f9c597ab6d8b1cb8004007054c977abdfe66 /hyprtester/src/main.cpp
parent1fc7e80bdb112e9b5b06287d19c85d6e6d2cc1d5 (diff)
tester: simplify adding test files
Diffstat (limited to 'hyprtester/src/main.cpp')
-rw-r--r--hyprtester/src/main.cpp17
1 files changed, 3 insertions, 14 deletions
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);