test_openexr_mac.sh 783 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. #
  9. rm -rf temp/build_test
  10. mkdir temp/build_test
  11. cmake -S test -B temp/build_test -G Xcode \
  12. -DCMAKE_TOOLCHAIN_FILE=../../../../Scripts/cmake/Platform/Mac/Toolchain_mac.cmake \
  13. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS;$PACKAGE_ROOT" || exit 1
  14. cmake --build temp/build_test --parallel --config Release || exit 1
  15. temp/build_test/Release/test_openexr.app/Contents/MacOS/test_openexr || exit 1
  16. cmake --build temp/build_test --parallel --config Debug || exit 1
  17. temp/build_test/Debug/test_openexr.app/Contents/MacOS/test_openexr || exit 1
  18. exit 0