mirror of
https://github.com/open-goal/jak-project
synced 2026-08-17 13:40:39 -04:00
Set up the compiler to ptrace the runtime (#107)
* set up the compiler to ptrace the runtime * clang format * move debugger state to a separate Debugger class * support registers and break and continue * documentation and fix windows * make listener part of compiler, not a separate library * implement memory read and write * fix for windows
This commit is contained in:
@@ -48,7 +48,8 @@ void CompilerTestRunner::run_test(const std::string& test_category,
|
||||
const std::vector<std::string>& expected,
|
||||
MatchParam<int> truncate) {
|
||||
fprintf(stderr, "Testing %s\n", test_file.c_str());
|
||||
auto result = c->run_test("test/goalc/source_generated/" + test_category + "/" + test_file);
|
||||
auto result =
|
||||
c->run_test_from_file("test/goalc/source_generated/" + test_category + "/" + test_file);
|
||||
if (!truncate.is_wildcard) {
|
||||
for (auto& x : result) {
|
||||
x = x.substr(0, truncate.value);
|
||||
@@ -85,7 +86,7 @@ void CompilerTestRunner::run_test(const std::string& test_category,
|
||||
|
||||
void CompilerTestRunner::run_always_pass(const std::string& test_category,
|
||||
const std::string& test_file) {
|
||||
c->run_test("test/goalc/source_generated/" + test_category + "/" + test_file);
|
||||
c->run_test_from_file("test/goalc/source_generated/" + test_category + "/" + test_file);
|
||||
tests.push_back({{}, {}, test_file, true});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user