|
16 | 16 | parser.add_argument('--apalache_path', help='Path to the Apalache directory', required=True) |
17 | 17 | parser.add_argument('--tlapm_lib_path', help='Path to the TLA+ proof manager module directory; .tla files should be in this directory', required=True) |
18 | 18 | parser.add_argument('--community_modules_jar_path', help='Path to the CommunityModules-deps.jar file', required=True) |
19 | | -parser.add_argument('--manifest_path', help='Path to the tlaplus/examples manifest.json file', required=True) |
| 19 | +parser.add_argument('--examples_root', help='Root directory of the tlaplus/examples repository', required=True) |
20 | 20 | parser.add_argument('--skip', nargs='+', help='Space-separated list of models to skip checking', required=False, default=[]) |
21 | 21 | parser.add_argument('--only', nargs='+', help='If provided, only check models in this space-separated list', required=False, default=[]) |
22 | 22 | parser.add_argument('--verbose', help='Set logging output level to debug', action='store_true') |
|
29 | 29 | apalache_path = normpath(args.apalache_path) |
30 | 30 | tlapm_lib_path = normpath(args.tlapm_lib_path) |
31 | 31 | community_jar_path = normpath(args.community_modules_jar_path) |
32 | | -manifest_path = normpath(args.manifest_path) |
33 | | -examples_root = dirname(manifest_path) |
| 32 | +examples_root = args.examples_root |
34 | 33 | skip_models = args.skip |
35 | 34 | only_models = args.only |
36 | 35 | enable_assertions = args.enable_assertions |
@@ -87,11 +86,11 @@ def check_model(module, model, expected_runtime): |
87 | 86 | return False |
88 | 87 |
|
89 | 88 | # Ensure longest-running modules go first |
90 | | -manifest = tla_utils.load_json(manifest_path) |
| 89 | +manifest = tla_utils.load_all_manifests(examples_root) |
91 | 90 | small_models = sorted( |
92 | 91 | [ |
93 | 92 | (module, model, tla_utils.parse_timespan(model['runtime'])) |
94 | | - for spec in manifest['specifications'] |
| 93 | + for spec in manifest |
95 | 94 | for module in spec['modules'] |
96 | 95 | for model in module['models'] |
97 | 96 | if model['size'] == 'small' |
|
0 commit comments