implemented new code splitting mechanism (split to equal slices)
[deliverable/titan.core.git] / regression_test / cfgFile / module_parameters / references / Makefile
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
7 #
8 # Contributors:
9 # Balasko, Jeno
10 # Baranyi, Botond
11 # Szabo, Bence Janos
12 #
13 ##############################################################################
14 TOPDIR := ../../../
15 include $(TOPDIR)/Makefile.regression
16
17 FILES := references.ttcn A.asn references.cfg
18 RUNNABLE := references
19 CFG := references.cfg
20 DIR_SINGLE := dir_single_mode
21 DIR_PARALLEL := dir_parallel_mode
22 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
23
24 COVERAGE_FLAG :=
25 ifeq ($(COVERAGE), yes)
26 COVERAGE_FLAG += -C
27 endif
28
29 ifdef DYN
30 ifeq ($(PLATFORM), WIN32)
31 export PATH+=:$(TTCN3_DIR)/lib:$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
32 else
33 export LD_LIBRARY_PATH+=:$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
34 endif
35 endif
36
37 MAKE_PROG := $(MAKE)
38
39 # List of fake targets:
40 .PHONY: all clean run run_single run_parallel runall
41
42 all: $(GENERATED_DIRS)
43
44 dir_single_mode:
45 mkdir $@
46 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
47 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s ./* && $(MAKE_PROG)
48
49 dir_parallel_mode:
50 mkdir $@
51 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
52 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) ./* && $(MAKE_PROG)
53
54 run: $(GENERATED_DIRS)
55 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
56 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
57
58 # To run all tests, possibly in parallel
59 run_single: $(DIR_SINGLE)
60 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
61 run_parallel: $(DIR_PARALLEL)
62 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
63 runall: run_single run_parallel
64
65 clean distclean:
66 rm -rf $(GENERATED_DIRS)
67
This page took 0.032742 seconds and 6 git commands to generate.