source: branches/stable/UNIT_TESTER/Makefile.setup.template

Last change on this file was 17817, checked in by westram, 6 years ago
  • Unit tests:
    • Makefile.setup.template:
      • move config sections (rarely used to bottom).
      • fix trailing whitespace.
      • add fun restriction vs crashtests.
      • add xrefs.
      • force Conf mode.
    • rename 5 tests (which call crashtests) by adding suffix → allows to filter
    • count tests skipped by RESTRICT_FUN/RESTRICT_MODULE as "skipped" ⇒ list them in summary.
    • ignore directory UNIT_TESTER/tests.
File size: 4.1 KB
Line 
1# ---------- setup file for unit tests                                         ; -*- mode: Conf; -*-
2# (edit Makefile.setup.local, not Makefile.setup.template)
3#
4# see also ./README.txt
5
6# ---------- Debugging
7DEADLOCKGUARD=1# install guard to avoid deadlocks (SVN default!)
8#DEADLOCKGUARD=0# dont install guard (needed to debug in gdb)
9
10# also see test_unit.h@ENABLE_CRASH_TESTS
11# or below .@crashtest
12
13# ---------- slow tests
14#SKIP_SLOW=15# skip slow tests (run only every SKIP_SLOW minutes)
15SKIP_SLOW=0# always run all tests
16
17# ---------- warnings?
18#WARN_LEVEL=1# enable warnings (recommended)
19WARN_LEVEL=0# disable warnings
20
21# ---------- only changed tests?
22ONLY_CHANGED_TESTS=1# only run changed tests
23#ONLY_CHANGED_TESTS=0# also run unchanged tests
24
25# ---------- restrict tests to modules matching regexpr 'RESTRICT_MODULE':
26RESTRICT_MODULE='.'
27#RESTRICT_MODULE='ED4_mini_classes\.cxx'
28#RESTRICT_MODULE='(ED4_mini_classes|ED4_cursor)\.cxx'
29
30# ---------- restrict tests by name to test-functions matching regexpr 'RESTRICT_FUN':
31RESTRICT_FUN='.'
32#RESTRICT_FUN='arb_export_tree'
33#RESTRICT_FUN='tree'
34#RESTRICT_FUN='!crashtest' # avoid all tests with 'crashtest' in their name
35
36# ---------- restrict tests to library with basename
37# (empty=no restriction, ':'-separated list of allowed test-names)
38#
39RESTRICT_LIB=# run all tests
40
41#RESTRICT_LIB=NOSUCHLIB# run no tests (useful to generate patch on successful compilation)
42#RESTRICT_LIB=arb_help2xml
43#RESTRICT_LIB=libARBDB
44#RESTRICT_LIB=libAWT
45#RESTRICT_LIB=AWTC
46#RESTRICT_LIB=CONVERTALN
47#RESTRICT_LIB=FAST_ALIGNER
48#RESTRICT_LIB=MERGE
49#RESTRICT_LIB=mkptypes
50#RESTRICT_LIB=NTREE
51#RESTRICT_LIB=SEQIO
52#RESTRICT_LIB=libCORE
53#RESTRICT_LIB=EDIT4
54#RESTRICT_LIB=TREEDISP
55#RESTRICT_LIB=PARSIMONY
56
57#RESTRICT_LIB=arb_probe
58#RESTRICT_LIB=arb_probe:arb_test
59#RESTRICT_LIB=arb_test
60
61#RESTRICT_LIB=libCORE:libARBDB
62#RESTRICT_LIB=AWTC:FAST_ALIGNER
63#RESTRICT_LIB=SEQIO:CONVERTALN
64#RESTRICT_LIB=client:arb_probe:AWTC
65#RESTRICT_LIB=libARBDB:libWINDOW:SEQIO
66#RESTRICT_LIB=libARBDB:DBSERVER
67#RESTRICT_LIB=TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP
68
69#RESTRICT_LIB=CONSENSUS_TREE:arb_consensus_tree:DIST:NEIGHBOURJOIN# NJ related
70#RESTRICT_LIB=arb_probe:arb_test:AWTC:PTCLEAN:PROBE:MULTI_PROBE# ptserver related tests
71#RESTRICT_LIB=TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP:PARSIMONY# tree related tests
72#RESTRICT_LIB=libARBDB:TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP:PARSIMONY# tree related tests (including tree handling in ARBDB)
73
74# ---------- unit tests create a patch each time tests pass ok
75# PATCHES_KEEP_HOURS and PATCHES_MIN_KEPT define when patches are removed again
76
77#PATCHES_KEEP_HOURS=336# delete created patches after two weeks
78PATCHES_KEEP_HOURS=168# delete created patches after one week
79#PATCHES_KEEP_HOURS=72# delete created patches after 3 days
80#PATCHES_KEEP_HOURS=0# delete created patches instantly (always PATCHES_MIN_KEPT patches present)
81
82PATCHES_MIN_KEPT=50# how many patches to keep at least
83
84# ---------- Valgrind
85# (most likely two pt-servers try to start parallel on the same port)
86VALGRIND=# do not valgrind anything
87#VALGRIND=A# run valgrind after sucessful test
88#VALGRIND=B# run valgrind before test (useful if test traps w/o any helpful information)
89#VALGRIND=E# run external tools in valgrind (must be coded; look for make_valgrinded_call())
90#VALGRIND=AE# valgrind after tests and external tools
91
92# also see test_unit.h@ENABLE_CRASH_TESTS
93# also see ../TEMPLATES/ut_valgrinded.h@VALGRIND_ONLY_SOME
94
95# --- Leak checking needs VALGRIND!=0
96#CHECK_LEAKS=0# check no leaks
97CHECK_LEAKS=1# check definite leaks
98#CHECK_LEAKS=2# check reachable leaks
99# for higher leak resolution edit ../SOURCE_TOOLS/arb_valgrind@resolution
100
101# ---------- restrict what coverage is displayed
102# to activate COVERAGE edit ../config.makefile@COVERAGE
103
104RESTRICT_COVERAGE=MODULE # only show for RESTRICT_MODULE (if '.' -> restrict to tested modules)
105#RESTRICT_COVERAGE=NO # show all
106#RESTRICT_COVERAGE='(ED4_mini_classes|ED4_cursor)\.cxx'
107
108# define how uncovered sections are sorted
109SORT_COVERAGE=LOCATION # line order
110#SORT_COVERAGE=SIZE # sort by size (biggest uncovered region first)
111
112# ---------- end
113
Note: See TracBrowser for help on using the repository browser.