mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -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?
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
#include "common/util/FileUtil.h"
|
|
|
|
struct OfflineTestSourceFile {
|
|
OfflineTestSourceFile(fs::path _path,
|
|
std::string _containing_dgo,
|
|
std::string _name_in_dgo,
|
|
std::string _unique_name)
|
|
: path(_path),
|
|
containing_dgo(_containing_dgo),
|
|
name_in_dgo(_name_in_dgo),
|
|
unique_name(_unique_name){};
|
|
fs::path path;
|
|
std::string containing_dgo;
|
|
std::string name_in_dgo;
|
|
std::string unique_name;
|
|
};
|
|
|
|
struct OfflineTestArtFile {
|
|
OfflineTestArtFile(std::string _containing_dgo,
|
|
std::string _name_in_dgo,
|
|
std::string _unique_name)
|
|
: containing_dgo(_containing_dgo), name_in_dgo(_name_in_dgo), unique_name(_unique_name){};
|
|
std::string containing_dgo;
|
|
std::string name_in_dgo;
|
|
std::string unique_name;
|
|
};
|
|
|
|
std::vector<OfflineTestSourceFile> find_source_files(const std::string& game_name,
|
|
const std::vector<std::string>& dgos,
|
|
const std::string& single_file);
|
|
std::unordered_map<std::string, std::unordered_map<int, std::string>> find_art_files(
|
|
const std::string& game_name);
|