Testing Tools

Testing executables are in bin

Unit testing

Individual test classes within the test_geos_unit suite can be run by calling the test_geos_unit executable directly. The test group name is found in the cpp file in the group declaration.

$ bin/test_geos_unit capi::GEOSNode

Individual tests within a test class can be run by specifying the test number:

$ bin/test_geos_unit capi::GEOSNode 1

XML Tests

XML tests can be run using test_xmltester:

bin/test_xmltester ../geos/tests/xmltester/tests/robust/overlay/TestOverlay-geos-837.xml

The XML Tester supports the following options:

Usage: bin/test_xmltester [options] <test> [<test> ...]
 -v                  Verbose mode (multiple -v increment verbosity)
--test-valid-output  Test output validity
--test-valid-input   Test input validity
--sql-output         Produce SQL output
--wkb-output         Print Geometries as HEXWKB

Additional Testing Tools

There are additional tests (typically for performance) which are built, but not run as part of the standard test suite. These can be run from the command line:

$ bin/perf_iterated_buffer
Last modified 8 weeks ago Last modified on Apr 26, 2021, 12:06:36 PM