Files
OpenSpace/support/assetvalidation
Alexander Bock 820e90eab4 Happy new year
2025-01-14 16:21:08 +01:00
..
2024-10-10 15:55:53 +02:00
2025-01-14 16:21:08 +01:00
2025-01-14 16:21:08 +01:00
2024-10-10 15:55:53 +02:00

Description

This script validates all* assets files by loading them one at a time into an empty scene in OpenSpace. The assets are loaded from scratch and then from cache and any errors are logged.

Setup

The project provides a requirements.txt with the necessary dependencies. Install using e.g., pip pip install -r /path/to/requirements.txt

Running validation tests

Parameter Description
--dir Points to the base folder of the OpenSpace version that is used to execute the validation. There needs to be a compiled version of OpenSpace available in the folder such that bin/RelWithDebInfo/OpenSpace.exe(on Windows) or bin/OpenSpace (on Linux) exists and is executable.
--filter Regex string to filter the assets to validate
--verbose If set to True output messages will also be printed to the console.

Example `python main.py --dir "C:/Development/OpenSpace" --filter "examples/*"