Giter Club home page Giter Club logo

megamol-tests's Introduction

This is the repository for MegaMol regression tests.

Requirements

Regression testing requires Python 3, pillow and SSIM-PIL

Generation of examples tests

The basic tests rely on the MegaMol examples and on them being enabled in CMake. They can be generated (also incrementally) using the tests.py script. From a valid build directory, navigate to install/bin and run

python ..\tests\tests.py ..\examples --generate-neutral-test

The basic tests go into tests/projects and mirror the directory structure of examples. They have the same name as the example they refer to, but are numbered, so multiple tests can be stored for each example, varying parameters or the like. They will be installed alongside them, and use an internal reference pointing to the corresponding example in the form --MM_TEST_IMPORT ../examples/testspheres.lua in the first line. Both files are then executed incrementally, so for the preceding example, the test script will load <install_dir>/examples/testspheres.lua and then <install_dir>/tests/projects/testspheres.1.lua. Note that the path separator will depend on the OS you generate the test on, but will be automatically translated to the current OS when the test is executed.

Generation of reference images

Build & install MegaMol, this will install the tests as well. Change to your installation/bin directory and use

python ..\tests\tests.py ..\tests --generate-reference

to generate the reference images. They will be placed next to the installed tests. Check them and move the correct ones to the correct place in build/tests/projects or a separate checkout of the megamol-tests repository, where you can stage and commit them.

Running tests

Build & install MegaMol, this will install the tests as well. Change to your installation/bin directory and use

python ..\tests\tests.py ..\tests

This will output individual results and a summary, plus a report.html in the respective directory.

Single file mode

You can also pass single files to the test script to save time or update one specific reference image, for example

python ..\tests\tests.py ..\tests\projects\mesh_dfr_gltf_example.1.lua --generate-reference --force

Remember to check in the changed image.

megamol-tests's People

Contributors

reinago avatar tobiasrau avatar

Watchers

 avatar  avatar  avatar

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.