mpytest

Run functionality tests for OpenFOAM Foundation software with automated validation within an CI environment. This tool executes tests on simulation data and adds a code-specific success or error messages to the log file.

Usage

mpytest <function> [options] actual desired

Functions

almostequal - Numerical Comparison

Tests if two objects are equal up to desired precision.

mpytest almostequal [options] actual desired

The tool utilizes the numpy.almostequal function.

Examples

Basic Comparison

Compare simulation output with reference:

mpytest almostequal result.csv reference.csv

Custom Precision

Test with 6 decimal places:

mpytest almostequal --decimal 6 simulation.dat validation.dat