mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
32 lines
729 B
C++
32 lines
729 B
C++
#include <functional>
|
|
#include "KeyOnOffTest.h"
|
|
#include "MultiCoreIrqTest.h"
|
|
#include "SetRepeatTest.h"
|
|
#include "SetRepeatTest2.h"
|
|
#include "SimpleIrqTest.h"
|
|
#include "SweepTest.h"
|
|
|
|
typedef std::function<CTest*()> TestFactoryFunction;
|
|
|
|
// clang-format off
|
|
static const TestFactoryFunction s_factories[] =
|
|
{
|
|
[]() { return new CKeyOnOffTest(); },
|
|
[]() { return new CMultiCoreIrqTest(); },
|
|
[]() { return new CSetRepeatTest(); },
|
|
[]() { return new CSetRepeatTest2(); },
|
|
[]() { return new CSimpleIrqTest(); },
|
|
[]() { return new CSweepTest(); },
|
|
};
|
|
// clang-format on
|
|
|
|
int main(int argc, const char** argv)
|
|
{
|
|
for(const auto& factory : s_factories)
|
|
{
|
|
auto test = factory();
|
|
test->Execute();
|
|
delete test;
|
|
}
|
|
return 0;
|
|
}
|