Debian Codegraph @

function_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 # Balasko, Jeno
10 # Baranyi, Botond
11 # Bartha, Norbert
12 # Delic, Adam
13 # Kovacs, Ferenc
14 # Ormandi, Matyas
15 # Raduly, Csaba
16 # Kristof, Szabados
17 #
18 ##############################################################################
19 # Makefile to run the non-interactive tests
20 DIRS := Semantic_Analyser Semantic_Analyser_Csaba Config_Parser OOP
21
22 SCRIPTFLAGS :=
23
24 # Coverage settings
25 LCOVDIR := /mnt/TTCN/Tools/lcov-1.7/usr
26 LCOV := no
27 ifeq ($(LCOV), yes)
28 SCRIPTFLAGS += -coverage
29 endif
30 # Runtime selection
31 #RT2 := yes
32 ifdef RT2
33 SCRIPTFLAGS += -rt2
34 endif
35
36 # Your platform. Allowed values: SOLARIS, SOLARIS8, LINUX, FREEBSD, WIN32
37 ifndef PLATFORM
38 PLATFORM1 := $(shell uname -s)
39 PLATFORM2 := $(shell uname -r)
40 PLATFORM3 := $(shell uname -m)
41
42 ifeq ($(PLATFORM1), SunOS)
43 ifeq ($(PLATFORM2), 5.6)
44 PLATFORM := SOLARIS
45 else
46 PLATFORM := SOLARIS8
47 endif # 5.6
48 endif # SunOS
49 ifeq ($(PLATFORM1), Linux)
50 PLATFORM := LINUX
51 endif # Linux
52 ifeq ($(PLATFORM1), FreeBSD)
53 PLATFORM := FREEBSD
54 endif # FreeBSD
55 ifeq ($(findstring CYGWIN, $(PLATFORM1)), CYGWIN)
56 PLATFORM := WIN32
57 endif # CYGWIN
58 ifeq ($(PLATFORM1), Interix)
59 PLATFORM := INTERIX
60 endif # Interix
61 endif # ifndef PLATFORM
62 ifndef PLATFORM
63 PLEASE CHECK THE ABOVE PLATFORM SETTINGS!!!
64 endif # ifndef PLATFORM
65
66 export PLATFORM
67 export RT2
68
69 all check run: $(DIRS)
70
71 .PHONY: $(DIRS)
72
73 BER_EncDec:
74 cd $@; make -j; make run
75
76 RAW_EncDec:
77 cd $@; make -j; make run
78
79 Text_EncDec:
80 cd $@; make -j; make run
81
82 XER_EncDec:
83 cd $@; make -j; make run
84
85 OER_EncDec:
86 cd $@; make -j; make run
87
88 Semantic_Analyser:
89 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test_all $(SCRIPTFLAGS)
90
91 Semantic_Analyser_Csaba:
92 make run -f Makefile.semantic -C Semantic_Analyser
93
94 Config_Parser:
95 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test $(SCRIPTFLAGS)
96
97 OOP:
98 cd $@; if [ ! -f perl ] ; then ln -s `which perl` perl; fi; ./run_test $(SCRIPTFLAGS)
99
100 profile: $(DIRS)
101 make all
102 $(LCOVDIR)/bin/lcov -d .. -c -o functest_coverage.info
103 $(LCOVDIR)/bin/genhtml -o functest_coverage -t "TITAN Function Test Coverage" functest_coverage.info
104
105 # It's a 50-50
106 clean:
107 for d in $(DIRS); do if [ -f $$d/Makefile ]; then $(MAKE) -C $$d clean; else : ; fi done
108
109 $(CURDIR)/Makefile.personal:
110 ln -s $(CURDIR)/../$(@F) $(CURDIR)/
111 include $(CURDIR)/Makefile.personal