#pragma once #include #include #include "cpu/gte/command.h" #include "utils/file.h" #define assert(condition) \ do { \ if (!(condition)) { \ std::cerr << "Assertion `" #condition "` failed in " << __FILE__ << " line " << __LINE__ << std::endl; \ std::terminate(); \ } \ } while (false) struct Entry { int reg; uint32_t data; }; struct GteTestCase { std::vector input; std::vector expectedOutput; gte::Command cmd; bool runCmd; GteTestCase() : cmd(0), runCmd(false) {} }; std::vector parseTestCases(const std::string& file);