Play-/tools/SpuTest/Main.cpp
Jean-Philip Desjardins ee88a4cfd6 Add multi core IRQ test.
2024-03-11 18:34:13 -04:00

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;
}