tests: add jak3 typeconsistency test and ensure offline tests are working (#3310)

This commit is contained in:
Tyler Wilding
2024-01-16 00:15:33 -05:00
committed by GitHub
parent 07427799a6
commit 4101d5d80e
14 changed files with 86 additions and 28 deletions
+1
View File
@@ -1,3 +1,4 @@
GAME=jak1
DECOMP_CONFIG=jak1/jak1_config.jsonc
DECOMP_CONFIG_VERSION=ntsc_v1
TYPE_CONSISTENCY_TEST_FILTER=Jak1TypeConsistency
+8
View File
@@ -69,6 +69,12 @@ default_config_version_map = {
"jak3": "ntsc_v1"
}
type_consistency_filter_map = {
"jak1": "Jak1TypeConsistency",
"jak2": "Jak2TypeConsistency",
"jak3": "Jak3TypeConsistency"
}
if args.game:
if args.game not in valid_games:
print("Unsupported game '{}'".format(args.game))
@@ -78,12 +84,14 @@ if args.game:
if (curr != file["GAME"]) or file["DECOMP_CONFIG_VERSION"] not in decomp_config_version_map[file["GAME"]]:
file["DECOMP_CONFIG"] = decomp_config_map[file["GAME"]]
file["DECOMP_CONFIG_VERSION"] = default_config_version_map[file["GAME"]]
file["TYPE_CONSISTENCY_TEST_FILTER"] = type_consistency_filter_map[file["GAME"]]
if args.decomp_config:
if args.decomp_config not in decomp_config_version_map[file["GAME"]]:
print("Unsupported decomp config '{}' for game '{}'".format(args.decomp_config, file["GAME"]))
sys.exit(1)
file["DECOMP_CONFIG"] = decomp_config_map[file["GAME"]]
file["DECOMP_CONFIG_VERSION"] = decomp_config_version_map[file["GAME"]][args.decomp_config]
file["TYPE_CONSISTENCY_TEST_FILTER"] = type_consistency_filter_map[file["GAME"]]
with open(env_path, 'w') as env_file:
for item in file.items():