[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8. Gama-local test suite

GNU Gama comes with a set of tests that provides gama-local test suite. To run the test suite, go to the top-level Gama directory and type

 
$ make check

You should see the names of the test suite files as they are processed, any other output indicates some problem. The output might be for example this

 
Entering directory 'gama/tests/gama-local'
PASS: gama-local-version.sh
PASS: gama-local-adjustment.sh
PASS: gama-local-algorithms.sh
PASS: gama-local-xml-xml.sh
PASS: gama-local-html.sh
PASS: gama-local-equivalents.sh
PASS: gama-local-xml-results.sh
PASS: gama-local-parameters.sh
PASS: gama-local-export.sh
PASS: gama-local-sqlite-reader.sh
PASS: xmllint-gama-local-xsd.sh
PASS: xmllint-gama-local-adjustment-xsd.sh
========================================================================
Testsuite summary for gama 2.29
========================================================================
# TOTAL: 12
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
========================================================================

Number of tests vary according to the configuration of your system. Tests that are always present are

 
gama-local-version
gama-local-adjustment
gama-local-algorithms
gama-local-xml-xml
gama-local-html
gama-local-equivalents
gama-local-xml-results
gama-local-parameters
gama-local-export

Optional tests are

 
gama-local-sqlite-reader
xmllint-gama-local-xsd
xmllint-gama-local-adjustment-xsd

which are included only if sqlite3 database support libraries and/or xmllint program are installed.

You can also request more extra test configuring the project as

 
./configure --enable-extra-tests

but be prepared that these extra test might take some time to finish.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.1 Internal organisation

Gama-local tests are implemented as shell scripts that are stored in gama/tests/gama-local directory. The scripts are generated from corresponding .in files which are stored in gama/tests/gama-local/script directory where are also stored helper C++ programs called by the testing suite scripts. Generating scripts and the build of helper programs is controlled from gama/tests/gama-local/Makefile.am, where a list of testing data files is also defined.

In gama/tests/gama-local directory are also stored detail .log files for all tests together with corresponging .trs (as in Test ReSults) files.

All files generated by the test suite are stored in gama/tests/gama-local/script/2.29 (thus generated files from different versions are not overwritten).

To run selected test individually, go to the directory gama/tests/gama-local and start the test manually

 
$ cd gama/tests/gama-local
$ ./test-name

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on February 17, 2024 using texi2html 1.82.