Code Monkey home page Code Monkey logo

guc-tests's Introduction

guc-tests

This is the test suite for guc, a glTF to USD converter.

For test-specific information, please see the Graphical Test Overview.

Local setup

  1. Build and install USD v23.08 with the following flags:
    --materialx --openimageio --build-args OpenImageIO,"-DOIIO_BUILD_TOOLS=ON"
  2. Build guc in debug configuration, add it to your PATH
  3. Execute run_tests.sh using bash

Environment variables

Test execution can be influenced using following variables:

Name Description
GT_DISABLE_CONVERSION Disable glTF to USD conversion. This option reduces test execution time when debugging the MaterialX glTF PBR implementation or hdStorm.
GT_DISABLE_GRAPHICAL Disable all graphical tests
GT_DISABLE_GRAPHICAL_MTLX Disable MaterialX graphical tests
GT_DISABLE_GRAPHICAL_PREVIEW Disable UsdPreviewSurface graphical tests
GT_VERBOSE Print all executed commands

Continuous integration

Tests can be executed on the CI, via guc's GitHub Actions workflow.

Note: graphical test execution on the CI is not advised due to long execution times and rendering artifacts.

guc-tests's People

Contributors

pablode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

guc-tests's Issues

Coverage improvements

Tests to cover following topics need to be added:

  • Instancing
  • Display colors
  • Negative glTF-Asset-Generator tests
  • Hard error handling (exit codes)
  • Soft error handling
    • Malformed base64
    • Missing mesh, light, camera, material
    • Invalid image signature
    • Invalid PXR_MTLX_STDLIB_SEARCH_PATHS path
    • Invalid image file path
    • Invalid accessor
  • Name generation & conflict resolution
  • Valgrind

Check log messages for errors and warnings

stderr and stdout messages should be checked for specific keywords ("error", "fail") indicating a test failure.

Similarily, warnings should be detected and treated as errors if the environment variable GT_ENABLE_WARNINGS_AS_ERRORS is set.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.