Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit OPENEXR_IMAGES_TAG from test image url if empty #1560

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/test/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ if(BUILD_TESTING)

set(OPENEXR_IMAGES_TAG "v1.0" CACHE STRING "Bin test image repo tag")

set(images_url ${OPENEXR_IMAGES_REPO}/${OPENEXR_IMAGES_TAG})

if ("${OPENEXR_IMAGES_TAG}" STREQUAL "")
set(images_url ${OPENEXR_IMAGES_REPO})
else()
set(images_url ${OPENEXR_IMAGES_REPO}/${OPENEXR_IMAGES_TAG})
endif()

set(images
TestImages/GrayRampsHorizontal.exr
LuminanceChroma/Garden.exr
Expand Down
24 changes: 24 additions & 0 deletions website/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,30 @@ shared object is produced.
``OPENEXR_DEFLATE_TAG``. This means do *not* use any existing
installation of ``libdeflate``.

Test Images Dependency
~~~~~~~~~~~~~~~~~~~~~~

The OpenEXR test suite relies on images from the `online test image
gallery
<https://github.com/AcademySoftwareFoundation/openexr-images>`_, which CMake
automatically downloads during configuration. You can provide an
alternate location for the test images via the ``OPENEXR_IMAGES_REPO``
and ``OPENEXR_IMAGES_TAG`` variables.

* ``OPENEXR_IMAGES_REPO`` and ``OPENEXR_IMAGES_TAG``

The images repo to auto-fetch for the test suite, and the tag to
sync it to. The default repo is
``https://github.com/AcademySoftwareFoundation/openexr-images.git``
and the tag is ``v1.0``.

Note that you can void downloading images by specifying a repo on the
local filesystem via a ``file:`` url:

.. code-block::

cmake -DOPENEXR_IMAGES_REPO=file:///my/clone/of/openexr-images -DOPENEXR_IMAGES_TAG=""

Namespace Options
~~~~~~~~~~~~~~~~~

Expand Down