Play-/tools/SpuTest/Main.cpp

34 lines
759 B
C++
Raw Permalink Normal View History

2020-12-28 20:54:11 -05:00
#include <functional>
2025-03-11 12:48:26 -04:00
#include "DefaultAppConfig.h"
2020-12-30 16:31:00 -05:00
#include "KeyOnOffTest.h"
2024-03-11 18:33:56 -04:00
#include "MultiCoreIrqTest.h"
2022-08-24 17:40:02 -04:00
#include "SetRepeatTest.h"
2023-09-08 16:12:04 -04:00
#include "SetRepeatTest2.h"
2020-12-28 20:54:11 -05:00
#include "SimpleIrqTest.h"
2022-04-08 08:49:06 -04:00
#include "SweepTest.h"
2020-12-28 20:54:11 -05:00
typedef std::function<CTest*()> TestFactoryFunction;
// clang-format off
static const TestFactoryFunction s_factories[] =
{
2020-12-30 16:31:00 -05:00
[]() { return new CKeyOnOffTest(); },
2024-03-11 18:33:56 -04:00
[]() { return new CMultiCoreIrqTest(); },
2022-08-24 17:40:02 -04:00
[]() { return new CSetRepeatTest(); },
2023-09-08 16:12:04 -04:00
[]() { return new CSetRepeatTest2(); },
2020-12-28 20:54:11 -05:00
[]() { return new CSimpleIrqTest(); },
2022-04-08 08:49:06 -04:00
[]() { return new CSweepTest(); },
2020-12-28 20:54:11 -05:00
};
// 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;
}