test_openexr_linux.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 Ninja \
  12. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS;$PACKAGE_ROOT" \
  13. -DCMAKE_BUILD_TYPE=Release || exit 1
  14. cmake --build temp/build_test --parallel || exit 1
  15. temp/build_test/test_openexr || exit 1
  16. cmake -S test -B temp/build_test -G Ninja \
  17. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS;$PACKAGE_ROOT" \
  18. -DCMAKE_BUILD_TYPE=Debug || exit 1
  19. cmake --build temp/build_test --parallel || exit 1
  20. temp/build_test/test_openexr || exit 1
  21. # extra - ensute multi-config compiles too
  22. rm -rf temp/build_test
  23. cmake -S test -B temp/build_test -G "Ninja Multi-Config" \
  24. -DCMAKE_MODULE_PATH="$DOWNLOADED_PACKAGE_FOLDERS;$PACKAGE_ROOT" || exit 1
  25. cmake --build temp/build_test --parallel --config Debug || exit 1
  26. cmake --build temp/build_test --parallel --config Release || exit 1
  27. cmake --build temp/build_test --parallel --config RelWithDebInfo || exit 1
  28. exit 0