#include "hardwaretests.h" #include #include #include #include #include #include #include #include static int runResult; int main(int argc, char *argv[]) { auto logger = std::make_shared("logger", std::make_shared()); logger->set_level(spdlog::level::debug); gLog = logger; auto cpuConfig = cpu::Settings { }; cpuConfig.jit.enabled = true; cpu::setConfig(cpuConfig); cpu::initialise(); // We need to run the tests on a core. cpu::setCoreEntrypointHandler( [](cpu::Core *core) { if (cpu::this_core::id() == 1) { // Run the tests on only a single core. runResult = hwtest::runTests("data/wiiu"); } }); cpu::start(); cpu::join(); return runResult; }