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

Last change on this file was 19810, checked in by westram, 3 weeks ago
File size: 4.2 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=2# enable all warnings
19WARN_LEVEL=1# enable some warnings (recommended; suppresses tests marked as broken)
20# WARN_LEVEL=0# disable warnings
21
22# ---------- only changed tests?
23ONLY_CHANGED_TESTS=1# only run changed tests
24#ONLY_CHANGED_TESTS=0# also run unchanged tests
25
26# ---------- restrict tests to modules matching regexpr 'RESTRICT_MODULE':
27RESTRICT_MODULE='.'
28#RESTRICT_MODULE='ED4_mini_classes\.cxx'
29#RESTRICT_MODULE='(ED4_mini_classes|ED4_cursor)\.cxx'
30
31# ---------- restrict tests by name to test-functions matching regexpr 'RESTRICT_FUN':
32RESTRICT_FUN='.'
33#RESTRICT_FUN='arb_export_tree'
34#RESTRICT_FUN='tree'
35#RESTRICT_FUN='!crashtest' # avoid all tests with 'crashtest' in their name
36
37# ---------- restrict tests to library with basename
38# (empty=no restriction, ':'-separated list of allowed test-names)
39#
40RESTRICT_LIB=# run all tests
41
42#RESTRICT_LIB=NOSUCHLIB# run no tests (useful to generate patch on successful compilation)
43#RESTRICT_LIB=arb_help2xml
44#RESTRICT_LIB=libARBDB
45#RESTRICT_LIB=libAWT
46#RESTRICT_LIB=AWTC
47#RESTRICT_LIB=CONVERTALN
48#RESTRICT_LIB=FAST_ALIGNER
49#RESTRICT_LIB=MERGE
50#RESTRICT_LIB=mkptypes
51#RESTRICT_LIB=NTREE
52#RESTRICT_LIB=SEQIO
53#RESTRICT_LIB=libCORE
54#RESTRICT_LIB=EDIT4
55#RESTRICT_LIB=TREEDISP
56#RESTRICT_LIB=PARSIMONY
57
58#RESTRICT_LIB=arb_probe
59#RESTRICT_LIB=arb_probe:arb_test
60#RESTRICT_LIB=arb_test
61
62#RESTRICT_LIB=libCORE:libARBDB
63#RESTRICT_LIB=AWTC:FAST_ALIGNER
64#RESTRICT_LIB=SEQIO:CONVERTALN
65#RESTRICT_LIB=client:arb_probe:AWTC
66#RESTRICT_LIB=libARBDB:libWINDOW:SEQIO
67#RESTRICT_LIB=libARBDB:DBSERVER
68#RESTRICT_LIB=TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP
69
70#RESTRICT_LIB=CONSENSUS_TREE:arb_consensus_tree:DIST:NEIGHBOURJOIN# NJ related
71#RESTRICT_LIB=arb_probe:arb_test:AWTC:PTCLEAN:PROBE:MULTI_PROBE# ptserver related tests
72#RESTRICT_LIB=TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP:PARSIMONY# tree related tests
73#RESTRICT_LIB=libARBDB:TREE_READ:CONSENSUS_TREE:arb_consensus_tree:arb_test:TREEDISP:PARSIMONY# tree related tests (including tree handling in ARBDB)
74
75# ---------- unit tests create a patch each time tests pass ok
76# PATCHES_KEEP_HOURS and PATCHES_MIN_KEPT define when patches are removed again
77
78#PATCHES_KEEP_HOURS=336# delete created patches after two weeks
79PATCHES_KEEP_HOURS=168# delete created patches after one week
80#PATCHES_KEEP_HOURS=72# delete created patches after 3 days
81#PATCHES_KEEP_HOURS=0# delete created patches instantly (always PATCHES_MIN_KEPT patches present)
82
83PATCHES_MIN_KEPT=50# how many patches to keep at least
84
85# ---------- Valgrind
86# (most likely two pt-servers try to start parallel on the same port)
87VALGRIND=# do not valgrind anything
88#VALGRIND=A# run valgrind after sucessful test
89#VALGRIND=B# run valgrind before test (useful if test traps w/o any helpful information)
90#VALGRIND=E# run external tools in valgrind (must be coded; look for make_valgrinded_call())
91#VALGRIND=AE# valgrind after tests and external tools
92
93# also see test_unit.h@ENABLE_CRASH_TESTS
94# also see ../TEMPLATES/ut_valgrinded.h@VALGRIND_ONLY_SOME
95
96# --- Leak checking needs VALGRIND!=0
97#CHECK_LEAKS=0# check no leaks
98CHECK_LEAKS=1# check definite leaks
99#CHECK_LEAKS=2# check reachable leaks
100# for higher leak resolution edit ../SOURCE_TOOLS/arb_valgrind@resolution
101
102# ---------- restrict what coverage is displayed
103# to activate COVERAGE edit ../config.makefile@COVERAGE
104
105RESTRICT_COVERAGE=MODULE # only show for RESTRICT_MODULE (if '.' -> restrict to tested modules)
106#RESTRICT_COVERAGE=NO # show all
107#RESTRICT_COVERAGE='(ED4_mini_classes|ED4_cursor)\.cxx'
108
109# define how uncovered sections are sorted
110SORT_COVERAGE=LOCATION # line order
111#SORT_COVERAGE=SIZE # sort by size (biggest uncovered region first)
112
113# ---------- end
114
Note: See TracBrowser for help on using the repository browser.