| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
on |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 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 |
|
| 68 |
.PHONY: all dep clean run $(DIRS) $(addsuffix /, $(DIRS)) coverage compileonly |
| 69 |
|
| 70 |
|
| 71 |
|
| 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 |
|
| 84 |
|
| 85 |
|
| 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 |
|
| 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 |
|
| 112 |
|
| 113 |
|
| 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 |