cmakeFiles-v1-check.py 510 B

123456789101112131415
  1. from check_index import *
  2. def check_objects(o):
  3. assert is_list(o)
  4. assert len(o) == 1
  5. check_index_object(o[0], "cmakeFiles", 1, 0, check_object_cmakeFiles)
  6. def check_object_cmakeFiles(o):
  7. assert sorted(o.keys()) == ["inputs", "kind", "paths", "version"]
  8. # The "kind" and "version" members are handled by check_index_object.
  9. # FIXME: Check "paths" and "inputs" members.
  10. assert is_dict(index)
  11. assert sorted(index.keys()) == ["cmake", "objects", "reply"]
  12. check_objects(index["objects"])