Merge pull request #4228 from ndtrung81/regression-tests

Adding support for doing regression tests
This commit is contained in:
Axel Kohlmeyer
2024-08-21 16:07:42 -04:00
committed by GitHub
14 changed files with 1459 additions and 219 deletions

View File

@ -96,6 +96,7 @@ Miscellaneous tools
* :ref:`LAMMPS-GUI <lammps_gui>`
* :ref:`LAMMPS magic patterns for file(1) <magic>`
* :ref:`Offline build tool <offline>`
* :ref:`Regression tester <regression>`
* :ref:`singularity/apptainer <singularity_tool>`
* :ref:`SWIG interface <swig>`
* :ref:`valgrind <valgrind>`
@ -991,6 +992,30 @@ README for more info on Pizza.py and how to use these scripts.
----------
.. _regression:
Regression tester tool
----------------------
The regression-tests subdirectory contains a tool for performing
regression tests with a given LAMMPS binary. The tool launches the
LAMMPS binary with any given input script under one of the `examples`
subdirectories, and compares the thermo output in the generated log file
with those in the provided log file with the same number of processors
ub the same subdirectory. If the differences between the actual and
reference values are within specified tolerances, the test is considered
passed. For each test batch, that is, a set of example input scripts,
the mpirun command, the LAMMPS command line arguments, and the
tolerances for individual thermo quantities can be specified in a
configuration file in YAML format.
The tool also reports if and how the run fails, and if a reference log file
is missing. See the README file for more information.
This tool was written by Trung Nguyen at U of Chicago (ndactrung at gmail.com).
----------
.. _replica:
replica tool