mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 06:05:15 -04:00
tests: add jak3 typeconsistency test and ensure offline tests are working (#3310)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
GAME=jak1
|
||||
DECOMP_CONFIG=jak1/jak1_config.jsonc
|
||||
DECOMP_CONFIG_VERSION=ntsc_v1
|
||||
TYPE_CONSISTENCY_TEST_FILTER=Jak1TypeConsistency
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user