mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
c24cdca380
Two main problems fixed here: - offline tests will fail on a comparison failure (a mistake from the re-write) - art-group-info is committed to the repo and shared with every thread (running the tests with 1 thread, for example on the CI, and locally were producing different results) art files are still not provided to the jak2 offline tests: - `*-ag` files are not being output - `art-elts.gc` is not complete, as a handful of files claim to be missing stuff lastly, in jak1's offline tests we were also running `tpage` and `*-vis` files through the decompiler. This omits that (they came from the `all_objs.json` file) -- is this an issue?
33 lines
971 B
C++
33 lines
971 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
#include <vector>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
class OfflineTestConfig {
|
|
public:
|
|
OfflineTestConfig(const std::string_view& _game_name,
|
|
const std::string& _iso_data_path,
|
|
const u32 _num_threads,
|
|
const bool _dump_mode,
|
|
const bool _fail_on_cmp,
|
|
const bool _fail_on_compile,
|
|
const bool _pretty_print);
|
|
|
|
std::string game_name;
|
|
std::string iso_data_path;
|
|
u32 num_threads;
|
|
bool dump_mode;
|
|
bool fail_on_cmp = false;
|
|
bool fail_on_compile = false; // unused currently!
|
|
bool pretty_print = false;
|
|
std::vector<std::string> dgos;
|
|
std::unordered_set<std::string> skip_compile_files;
|
|
std::unordered_set<std::string> skip_compile_functions;
|
|
std::unordered_map<std::string, std::unordered_set<std::string>> skip_compile_states;
|
|
};
|