summaryrefslogtreecommitdiff
path: root/hyprtester/src/main.cpp
diff options
context:
space:
mode:
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);