Debian Codegraph @

regression_test/Makefile

raw symbols SCIP
1 ##############################################################################
2 # Copyright (c) 2000-2021 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v2.0
5 # which accompanies this distribution, and is available at
6 # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 #
8 # Contributors:
9 #
10 # Balasko, Jeno
11 # Baranyi, Botond
12 # Beres, Szabolcs
13 # Czerman, Oliver
14 # Delic, Adam
15 # Dimitrov, Peter
16 # Forstner, Matyas
17 # Godar, Marton
18 # Hanko, Matyas
19 # Koppany, Csaba
20 # Kovacs, Ferenc
21 # Lovassy, Arpad
22 # Ormandi, Matyas
23 # Raduly, Csaba
24 # Szabados, Kristof
25 # Szabo, Bence Janos
26 # Szabo, Janos Zoltan – initial implementation
27 # Szalai, Gabor
28 # Tatarka, Gabor
29 # Zalanyi, Balazs Andor
30 #
31 ##############################################################################
32 # Settings for the regression test
33
34 TOPDIR := $(CURDIR)
35 include $(TOPDIR)/Makefile.regression
36
37 DIRS := intOper boolOper floatOper bitstrOper octetstrOper charOper charstrOper \
38 verdictOper recordOper recofOper setOper setofOper setofMatch unionOper \
39 enumOper arrayOper anytypeOper templateInt templateBool templateFloat templateBitstr \
40 templateHexstr templateOctetstr templateChar templateCharstr templateUnicharstr \
41 templateRec templateRec_nolegacy templateRecof templateSet templateSetof templateUnion templateEnum modifiedTemplate \
42 basicStatem configOper commMessage commProcedure lostTimer controlTimer \
43 EncodeDecode ASN1 predefFunction ERC preCompilerFlags functionReference \
44 nonMandatoryPar logFiles logger_control namedActualParameters \
45 assignmentNotation omitdef anytype implicitMsgEncoding pattern_quadruples \
46 macros visibility hexstrOper ucharstrOper objidOper CRTR00015758 slider \
47 XML ipv6 implicitOmit testcase_defparam transparent HQ16404 cfgFile \
48 all_from lazyEval tryCatch text2ttcn ttcn2json profiler templateOmit \
49 customEncoding makefilegen uidChars checkstate hostid templateIstemplatekind \
50 selectUnion templateExclusiveRange any_from templatePatternRef indexWithRecofArray \
51 connectMapOperTest fuzzy portTranslation ischosen functionSubref done \
52 nondeterministicDefaultParam predefFunction2 realtime portTranslationCentralStorage \
53 locale oop references unicharstrToCharstr defaultAlternative map_param
54
55 ifdef DYN
56 DIRS += loggerplugin junitlogger
57 endif
58
59 ifdef RT2
60 DIRS += typeCompat negativeTest templateConcat
61 endif
62
63 ifeq (LTTNGUSTLOGGER, yes)
64 DIRS += LTTngUSTLogger
65 endif
66
67 # List of fake targets:
68 .PHONY: all dep clean run $(DIRS) $(addsuffix /, $(DIRS)) coverage compileonly
69
70 # Export all variables to the sub-directories.
71 #export
72
73 all dep clean distclean:
74 $(MAKE) -C compileonly $@
75 for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
76 $(RM) report.txt
77 $(RM) build.txt
78
79 run:
80 for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
81
82
83 # It is assumed, that the TITAN sources are available in `..'. Please note,
84 # that if TITAN was compiled with coverage enabled, only this target will
85 # work properly.
86 coverage:
87 $(LCOV_DIR)/bin/lcov -d .. -z
88 make report LCOV=1
89 $(LCOV_DIR)/bin/lcov -d .. -c -o regtest_coverage.info
90 $(LCOV_DIR)/bin/genhtml -o regtest_coverage -t "TITAN Regression Test Coverage" regtest_coverage.info
91
92 compileonly $(DIRS) $(addsuffix /, $(DIRS)):
93 ifeq ($(DEBUG), yes)
94 bash -c 'set -o pipefail; $(MAKE) -C $@ 2>&1 | tee current_build.txt'
95 @if [ -f build.txt ]; \
96 then cat build.txt current_build.txt > build_result.txt; rm current_build.txt; mv build_result.txt build.txt; \
97 else mv current_build.txt build.txt; fi
98 else
99 $(MAKE) -C $@
100 endif
101
102 # Build in parallel
103 parallel build-par: compileonly $(DIRS)
104 ifeq ($(DEBUG), yes)
105 @echo "--------------------------------------"
106 @echo "List of memory leaks during the build:"
107 @echo "--------------------------------------"
108 @perl vcheck.pl build.txt
109 endif
110
111 # To generate a report:
112 # First, build everything (incl. compileonly); possibly in parallel.
113 # Then, run the runnable tests in sequence (avoids garbled output).
114 report.txt: parallel
115 bash -c 'set -o pipefail; $(MAKE) run 2>&1 | tee report.txt'
116
117 report: report.txt
118 @echo "----------------------------------"
119 @echo "List of tests not 100% successful:"
120 @echo "----------------------------------"
121 @perl vcheck.pl report.txt
122
123 testclean:
124 $(MAKE) -C .. $@
125
126 rclean:
127 $(MAKE) clean 'DIRS=$(filter-out $(TESTDIRS), $(DIRS))'
128
129 prereq:
130 ./prereq.pl ${MAKELEVEL}
131
132 $(TOPDIR)/Makefile.personal:
133 ln -s $(TOPDIR)/../$(@F) $(TOPDIR)/
134
135 unexport DIRS
136
137 include Makefile.regression
138 export PLATFORM