Data3Check.cmake 959 B

12345678910111213141516171819202122232425
  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 downloaded to
  9. # our first store location. Neither object should exist in the other store.
  10. foreach(should_exist
  11. "${Store0}/MD5/aaad162b85f60d1eb57ca71a23e8efd7"
  12. "${Store1}/MD5/8c018830e3efa5caf3c7415028335a57"
  13. )
  14. if(NOT EXISTS ${should_exist})
  15. message(SEND_ERROR "Store file:\n ${should_exist}\nshould exist!")
  16. endif()
  17. endforeach()
  18. foreach(should_not_exist
  19. "${Store0}/MD5/8c018830e3efa5caf3c7415028335a57"
  20. "${Store1}/MD5/aaad162b85f60d1eb57ca71a23e8efd7"
  21. )
  22. if(EXISTS ${should_not_exist})
  23. message(SEND_ERROR "Store file:\n ${should_not_exist}\nshould not exist!")
  24. endif()
  25. endforeach()