Changes between Version 25 and Version 26 of BuildingOnUnixWithCMake


Ignore:
Timestamp:
Oct 4, 2018, 7:11:07 PM (6 years ago)
Author:
dbaston
Comment:

add details about testing

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOnUnixWithCMake

    v25 v26  
    8585}}}
    8686
    87 It is also possible to run ''ctest'' program directly, but not through any of the ''make'' targets. This option gives access to number of ''ctest'' command line options (''cmake --help''), for example:
     87It is also possible to run ''ctest'' program directly, but not through any of the ''make'' targets. This option gives access to number of ''ctest'' command line options (''ctest --help''), for example:
    8888
    8989{{{
     
    9191$ ctest --verbose
    9292}}}
     93
     94A list of test suites can be obtained by running ''ctest --show-only'':
     95
     96{{{
     97$ ctest --show-only
     98#
     99# Test project /home/dan/dev/libgeos/cmake-build-debug
     100#  Test #1: test_geos_unit
     101#  Test #2: test_xmltester
     102#  Test #3: test_bug234
     103#  Test #4: test_sweep_line_speed
     104#  Test #5: perf_class_sizes
     105#  Test #6: perf_iterated_buffer
     106#  Test #7: perf_rectangle_intersects
     107#  Test #8: perf_memleak_mp_prep
     108}}}
     109
     110An subset of test suites can then be run using a regular expression:
     111
     112
     113{{{
     114$ ctest --tests-regex test_ --parallel 4
     115}}}
     116
     117Individual test classes within the ''test_geos_unit'' suite can be run by calling the ''test_geos_unit'' executable directly:
     118
     119{{{
     120$ bin/test_geos_unit capi::GEOSNode
     121}}}
     122
    93123
    94124== Install ==