source: tags/ms_r18q1/UNIT_TESTER/Makefile.setup.template

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