tester: simplify adding test files
This commit is contained in:
parent
1fc7e80bdb
commit
e4b6fedfb9
6 changed files with 25 additions and 22 deletions
|
|
@ -1,6 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
bool testGroups();
|
||||
bool testWindows();
|
||||
bool testWorkspaces();
|
||||
bool testMisc();
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
inline std::vector<std::function<bool()>> testFns;
|
||||
|
||||
#define REGISTER_TEST_FN(fn) \
|
||||
static auto _register_fn = [] { \
|
||||
testFns.emplace_back(fn); \
|
||||
return 1; \
|
||||
}();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue