1 ##############################################################################
2 # Copyright (c) 2000-2016 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 v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
26 # Szabo, Janos Zoltan – initial implementation
29 # Zalanyi, Balazs Andor
31 ##############################################################################
32 # Settings for the regression test
35 include $(TOPDIR
)/Makefile.regression
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 templateRecof templateSet templateSetof templateUnion templateEnum modifiedTemplate \
42 basicStatem configOper commMessage commProcedure lostTimer controlTimer \
43 BER BER_x682 ASN1 predefFunction ERC preCompilerFlags functionReference \
44 nonMandatoryPar logFiles logger_control namedActualParameters \
45 assignmentNotation omitdef anytype RAW 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 json junitlogger ttcn2json profiler templateOmit \
49 customEncoding makefilegen uidChars checkstate hostid
56 DIRS
+= typeCompat negativeTest
59 # List of fake targets:
60 .PHONY
: all dep
clean run
$(DIRS
) $(addsuffix /, $(DIRS
)) coverage compileonly
62 # Export all variables to the sub-directories.
65 all dep
clean distclean:
66 $(MAKE
) -C compileonly
$@
67 for
dir in
$(DIRS
); do
$(MAKE
) -C
$$dir $@ || exit
; done
71 for
dir in
$(DIRS
); do
$(MAKE
) -C
$$dir $@ || exit
; done
74 # It is assumed, that the TITAN sources are available in `..'. Please note,
75 # that if TITAN was compiled with coverage enabled, only this target will
78 $(LCOV_DIR
)/bin
/lcov
-d ..
-z
80 $(LCOV_DIR
)/bin
/lcov
-d ..
-c
-o regtest_coverage.
info
81 $(LCOV_DIR
)/bin
/genhtml
-o regtest_coverage
-t
"TITAN Regression Test Coverage" regtest_coverage.
info
83 compileonly
$(DIRS
) $(addsuffix /, $(DIRS
)):
87 parallel build-par
: compileonly
$(DIRS
)
89 # To generate a report:
90 # First, build everything (incl. compileonly); possibly in parallel.
91 # Then, run the runnable tests in sequence (avoids garbled output).
93 bash
-c
'set -o pipefail; $(MAKE) run 2>&1 | tee report.txt'
96 @echo
"----------------------------------"
97 @echo
"List of tests not 100% successful:"
98 @echo
"----------------------------------"
99 @perl vcheck.pl report.txt
105 $(MAKE
) clean 'DIRS=$(filter-out $(TESTDIRS), $(DIRS))'
108 .
/prereq.pl
${MAKELEVEL}
110 $(TOPDIR
)/Makefile.personal
:
111 ln
-s
$(TOPDIR
)/..
/$(@F
) $(TOPDIR
)/
115 include Makefile.regression