1 ###############################################################################
2 # Copyright (c) 2000-2014 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
7 ###############################################################################
8 # Makefile to run the non-interactive tests
9 DIRS
:= BER_EncDec RAW_EncDec Text_EncDec XER_EncDec Semantic_Analyser Semantic_Analyser_Csaba Config_Parser
14 LCOVDIR
:= /mnt
/TTCN
/Tools
/lcov-1.7
/usr
17 SCRIPTFLAGS
+= -coverage
19 # Runtime selection, doesn't have effect on BER/RAW tests yet
25 # Your platform. Allowed values: SOLARIS, SOLARIS8, LINUX, FREEBSD, WIN32
27 PLATFORM1
:= $(shell uname
-s
)
28 PLATFORM2
:= $(shell uname
-r
)
29 PLATFORM3
:= $(shell uname
-m
)
31 ifeq ($(PLATFORM1
), SunOS
)
32 ifeq ($(PLATFORM2
), 5.6)
38 ifeq ($(PLATFORM1
), Linux
)
41 ifeq ($(PLATFORM1
), FreeBSD
)
44 ifeq ($(findstring CYGWIN
, $(PLATFORM1
)), CYGWIN
)
47 ifeq ($(PLATFORM1
), Interix
)
50 endif # ifndef PLATFORM
52 PLEASE CHECK THE ABOVE PLATFORM SETTINGS
!!!
53 endif # ifndef PLATFORM
57 all check run
: $(DIRS
)
62 cd
$@
; .
/run_test
$(SCRIPTFLAGS
)
65 cd
$@
; .
/run_test
$(SCRIPTFLAGS
)
68 cd
$@
; if
[ ! -f perl
] ; then ln
-s
`which perl` perl
; fi
; .
/run_test
$(SCRIPTFLAGS
)
71 cd
$@
; .
/run_test
$(SCRIPTFLAGS
)
74 cd
$@
; if
[ ! -f perl
] ; then ln
-s
`which perl` perl
; fi
; .
/run_test_all
$(SCRIPTFLAGS
)
76 Semantic_Analyser_Csaba
:
77 make run
-f Makefile.semantic
-C Semantic_Analyser
80 cd
$@
; if
[ ! -f perl
] ; then ln
-s
`which perl` perl
; fi
; .
/run_test
$(SCRIPTFLAGS
)
84 $(LCOVDIR
)/bin
/lcov
-d ..
-c
-o functest_coverage.
info
85 $(LCOVDIR
)/bin
/genhtml
-o functest_coverage
-t
"TITAN Function Test Coverage" functest_coverage.
info
89 for d in
$(DIRS
); do if
[ -f
$$d/Makefile
]; then
$(MAKE
) -C
$$d clean; else : ; fi done
91 $(CURDIR
)/Makefile.personal
:
92 ln
-s
$(CURDIR
)/..
/$(@F
) $(CURDIR
)/
93 include $(CURDIR
)/Makefile.personal