Play-/tools/SpuTest/Main.cpp
2021-01-01 14:16:31 -05:00

24 lines
461 B
C++

#include <functional>
#include "KeyOnOffTest.h"
#include "SimpleIrqTest.h"
typedef std::function<CTest*()> TestFactoryFunction;
// clang-format off
static const TestFactoryFunction s_factories[] =
{
[]() { return new CKeyOnOffTest(); },
[]() { return new CSimpleIrqTest(); },
};
// 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;
}