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 ###############################################################################
9 include $(TOPDIR
)/Makefile.regression
13 TTCN_FILE
:= lazy_main.ttcn
14 TTCN_FILES
:= lazy_main.ttcn lazy_A.ttcn lazy_B.ttcn lazy_defs.ttcn LazyASNTypes.asn
17 FILES
:= $(TTCN_FILES
) $(CFG
)
19 RUNNABLE
:= $(TTCN_FILE
:.ttcn
=)
21 #ifeq ($(PLATFORM), WIN32)
25 DIR_SINGLE
:= dir_single_mode
26 DIR_PARALLEL
:= dir_parallel_mode
27 GENERATED_DIRS
:= $(DIR_SINGLE
) $(DIR_PARALLEL
)
29 # List of fake targets:
30 .PHONY
: all clean run run_single run_parallel runall
32 all: $(GENERATED_DIRS
)
36 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
37 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-s
-e
$(RUNNABLE
) .
/* && $(MAKE_PROG
)
41 cd
$@
&& for file in
$(FILES
); do ln
-s ..
/$$file || exit
; done
42 cd
$@
&& $(TTCN3_DIR
)/bin
/ttcn3_makefilegen
-e
$(RUNNABLE
) .
/* && $(MAKE_PROG
)
44 run
: $(GENERATED_DIRS
)
45 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
46 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
48 # To run all tests, possibly in parallel
49 run_single
: $(DIR_SINGLE
)
50 cd
$(DIR_SINGLE
) && .
/$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
52 run_parallel
: $(DIR_PARALLEL
)
53 cd
$(DIR_PARALLEL
) && $(TTCN3_DIR
)/bin
/ttcn3_start
$(RUNNABLE
) $(CFG
) && grep
"Overall verdict: pass" *.log
55 runall
: run_single run_parallel
58 rm -rf
$(GENERATED_DIRS
)