Data4Check.cmake 992 B

1234567891011121314151617181920212223242526
  1. if(NOT EXISTS "${Data}")
  2. message(SEND_ERROR "Input file:\n ${Data}\ndoes not exist!")
  3. endif()
  4. if(NOT EXISTS "${Other}")
  5. message(SEND_ERROR "Input file:\n ${Other}\ndoes not exist!")
  6. endif()
  7. # Verify that the 'Data' object was found in the second store location left
  8. # from Data1 target downloads and that the 'Other' object was found in the
  9. # first store location left from Data3 target downloads. Neither object
  10. # should exist in the opposite store.
  11. foreach(should_exist
  12. "${Store0}/MD5/aaad162b85f60d1eb57ca71a23e8efd7"
  13. "${Store1}/MD5/8c018830e3efa5caf3c7415028335a57"
  14. )
  15. if(NOT EXISTS ${should_exist})
  16. message(SEND_ERROR "Store file:\n ${should_exist}\nshould exist!")
  17. endif()
  18. endforeach()
  19. foreach(should_not_exist
  20. "${Store0}/MD5/8c018830e3efa5caf3c7415028335a57"
  21. "${Store1}/MD5/aaad162b85f60d1eb57ca71a23e8efd7"
  22. )
  23. if(EXISTS ${should_not_exist})
  24. message(SEND_ERROR "Store file:\n ${should_not_exist}\nshould not exist!")
  25. endif()
  26. endforeach()