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

Restore unit tests for texture3d #1437

Merged
merged 1 commit into from Nov 20, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -179,6 +179,7 @@ jobs:
CXX: g++
CC: gcc
CMAKE_CXX_STANDARD: 17
OPENIMAGEIO_VERSION: release
PYBIND11_VERSION: v2.7.1
PYTHON_VERSION: 3.9
USE_BATCHED: b8_AVX2
Expand All @@ -203,6 +204,7 @@ jobs:
src/build-scripts/ci-startup.bash
- name: Dependencies
run: |
rm -rf /usr/local/include/OpenImageIO /usr/local/lib/cmake/OpenImageIO
src/build-scripts/gh-installdeps.bash
- name: Build
run: |
Expand Down
8 changes: 4 additions & 4 deletions src/cmake/testing.cmake
Expand Up @@ -304,11 +304,11 @@ macro (osl_add_all_tests)
TESTSUITE ( python-oslquery )
endif ()

# Only run field3d-related tests if the local OIIO was built with f3d support.
execute_process ( COMMAND ${OPENIMAGEIO_BIN} --help
# Only run openvdb-related tests if the local OIIO has openvdb support.
execute_process ( COMMAND ${OpenImageIO_LIB_DIR}/../bin/oiiotool --help
OUTPUT_VARIABLE oiiotool_help )
if (oiiotool_help MATCHES "field3d")
TESTSUITE ( texture-field3d )
if (oiiotool_help MATCHES "openvdb")
TESTSUITE ( texture3d )
endif()

# Only run pointcloud tests if Partio is found
Expand Down
Binary file removed testsuite/texture-field3d/dense_float.f3d
Binary file not shown.
Binary file removed testsuite/texture-field3d/dense_half.f3d
Binary file not shown.
Binary file removed testsuite/texture-field3d/ref/out.tif
Binary file not shown.
Binary file removed testsuite/texture-field3d/sparse_float.f3d
Binary file not shown.
Binary file removed testsuite/texture-field3d/sparse_half.f3d
Binary file not shown.
Binary file added testsuite/texture3d/ref/out.tif
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added testsuite/texture3d/sphere.vdb
Binary file not shown.
Expand Up @@ -3,8 +3,8 @@
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

shader
test (string filename = "data/sparse_half.f3d",
test (string filename = "data/sphere.vdb",
output color Cout = 0)
{
Cout = (color) texture3d (filename, point(u,v,0.5));
Cout = (color) texture3d (filename, point(u*2-1,v*2-1,0));
}