Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History

pyunittests

README.txt

Dependencies
============

List of python packages required to run the tests and demos:

- Pillow (to install "pip install pillow" (Linux) or "easy_install pillow" (Windows))

Compile perceptualdiff on Linux:
--------------------------------

cd deps/perceptualdiff-master
cmake .
make

Compile perceptualdiff on Windows:
----------------------------------

1. Download FreeImage DLL from
http://downloads.sourceforge.net/freeimage/FreeImage3180Win32Win64.zip

2. Extract the content of FreeImage\Dist\x64 to deps/perceptualdiff-master:
FreeImage.dll
FreeImage.h
FreeImage.lib

3. Open the "x64 Native Tools Command Prompt for VS 2017" window and issue the following commands:

cd deps/perceptualdiff-master
cmake -G "Visual Studio 15 2017" -T v141,host=x64 -A x64 -D FREEIMAGE_ROOT=. .
msbuild /toolsversion:15.0 /p:Configuration=Release /p:Platform=x64 perceptualdiff.sln
copy Release\perceptualdiff.exe .

Unit tests
==========

To run the tests:

python3 unittests.py

To run only a set of tests:

python3 unittests.py --filter PATHCPU

To have the list of options:

python3 unittests.py --help

To run the test with a custom configuration:

python3 unittests.py --config testconfigs/dade.cfg

Add the following properties to --config file to enable
https://github.com/LuxCoreRender/LuxCoreTestScenes test scenes:

luxcoretestscenes.directory = /home/david/projects/luxcorerender/LuxCoreTestScenes

Reference images
================

To generate reference images, just run the tests once and they will automatically
fill to referenceimages directory.