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
13 ##############################################################################
15 include $(TOPDIR
)/Makefile.regression
19 TTCN_FILE
:= lazy_main.ttcn
20 TTCN_FILES
:= lazy_main.ttcn lazy_A.ttcn lazy_B.ttcn lazy_defs.ttcn LazyASNTypes.asn
23 FILES
:= $(TTCN_FILES
) $(CFG
)
25 RUNNABLE
:= $(TTCN_FILE
:.ttcn
=)
27 #ifeq ($(PLATFORM), WIN32)
32 ifeq ($(COVERAGE
), yes
)
36 DIR_SINGLE
:= dir_single_mode
37 DIR_PARALLEL
:= dir_parallel_mode
38 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
40 # List of fake targets:
41 .PHONY
: all clean run run_single run_parallel runall
43 all: $(GENERATED_DIRS
)
47 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
48 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) $(SPLIT_FLAG
) -s
-e
$(RUNNABLE
) .
/* && $(MAKE_PROG
)
52 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
53 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
$(COVERAGE_FLAG
) $(SPLIT_FLAG
) -e
$(RUNNABLE
) .
/* && $(MAKE_PROG
)
55 run
: $(GENERATED_DIRS
)
56 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
57 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
59 # To run all tests, possibly in parallel
60 run_single
: $(DIR_SINGLE
)
61 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
63 run_parallel
: $(DIR_PARALLEL
)
64 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
66 runall
: run_single run_parallel
69 rm -rf
$(GENERATED_DIRS
)