1 ###############################################################################
2 # Copyright (c) 2000-2015 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 ###############################################################################
9 include $(TOPDIR
)/Makefile.regression
13 TTCN_FILE
:= structured.ttcn
16 FILES
:= $(TTCN_FILE
) $(CFG
)
17 RUNNABLE
:= $(TTCN_FILE
:.ttcn
=)
19 DIR_SINGLE
:= dir_single_mode
20 DIR_PARALLEL
:= dir_parallel_mode
21 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
24 ifeq ($(COVERAGE
), yes
)
28 # List of fake targets:
29 .PHONY
: all clean run run_single run_parallel runall
31 all: $(GENERATED_DIRS
)
35 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
36 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) -s .
/* && $(MAKE_PROG
) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
40 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
41 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) .
/* && $(MAKE_PROG
) 'CXXFLAGS=$(CXXFLAGS)' 'LDFLAGS=$(LDFLAGS)'
43 run
: $(GENERATED_DIRS
)
44 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
45 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
47 # To run all tests, possibly in parallel
48 run_single
: $(DIR_SINGLE
)
49 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
)
50 run_parallel
: $(DIR_PARALLEL
)
51 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
)
52 runall
: run_single run_parallel
55 rm -rf
$(GENERATED_DIRS
)