GRAS testsΒΆ
A set of tests of the GRAS functionalities is distributed with the GRAS
code, under the tests
folder. During installation, the
make install
instruction also creates a copy of the whole tests
directory tree under the build
area.
In each test test folder, one or more test macro files are contained in
the macros
folder. Reference CSV output files are contained in the
data
folder, reference log text in the log
folder.
Each test is driven by a macro file and can be run individually, but all
tests can also be run at once in the build/tests
area with the BASH
script tests_run_all.sh
.
A report of all tests results can be compiled, based on all CSV output
files, with the script tests_make_report.sh
. This script executes
the Python script tests_make_report.py
, which produces - a series of
text files in reStructuredText format, and - plots for all 1D histograms
in the CSV files. This information is processed with the sphinx
package to produce - web pages in HTML format, that can be visualised
with a web browser, and - LaTeX pages converted to PDF format with
pdflatex
.
By default, the results of the tests run in the build area are compared
side-by-side to the reference results from the same release (included
under gras/tests
).
GRAS/trunk/r2242