281268697220e135a2b91bcd7922b6b230e34628
[deliverable/titan.core.git] / regression_test / cfgFile / ordered_include / 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 # Szabados, Kristof
11 #
12 ##############################################################################
13 TOPDIR := ../../
14 include $(TOPDIR)/Makefile.regression
15
16 #FILES := oi.ttcn oi_before1.cfg oi_before2.cfg oi_before3.cfg oi_before4.cfg oi_after1.cfg oi_after2.cfg oi1_before1.cfg oi1_after1.cfg oi1_after2.cfg oi1_after3.cfg oi2.cfg oi22.cfg oi23.cfg oi_last1.cfg oi_last2.cfg oi_last3.cfg oi_after_list1.cfg oi_after_list2.cfg oi2_nomacro.cfg oi_include_interference.cfg oi_subfolder1.cfg
17 FILES := oi.ttcn
18 RUNNABLE := oi
19
20 CFGS := oi_before1.cfg oi_before2.cfg oi_before3.cfg oi_before4.cfg oi_after1.cfg oi_after2.cfg oi_last1.cfg oi_last2.cfg oi_last3.cfg oi_after_list1.cfg oi_after_list2.cfg oi_include_interference.cfg oi_subfolder1.cfg oi_before5.cfg oi_include_mix.cfg
21
22 DIR_SINGLE := dir_single_mode
23 DIR_PARALLEL := dir_parallel_mode
24 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
25
26 COVERAGE_FLAG :=
27 ifeq ($(COVERAGE), yes)
28 COVERAGE_FLAG += -C
29 endif
30
31 ifdef DYN
32 ifeq ($(PLATFORM), WIN32)
33 export PATH+=:$(TTCN3_DIR)/lib:$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
34 else
35 export LD_LIBRARY_PATH+=:$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
36 endif
37 endif
38
39 MAKE_PROG := $(MAKE)
40
41 # List of fake targets:
42 .PHONY: all clean run run_single run_parallel runall
43
44 all: $(GENERATED_DIRS)
45
46 dir_single_mode:
47 mkdir $@
48 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
49 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
50
51 dir_parallel_mode:
52 mkdir $@
53 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
54 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
55
56 run: clean run_single run_parallel
57
58 #run: $(GENERATED_DIRS)
59 # cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
60 # cd $(DIR_PARALLEL) && for C in $(CFGS); do $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $$(C) || exit; done
61
62 # To run all tests, possibly in parallel
63 run_single: $(DIR_SINGLE)
64 cd $(DIR_SINGLE) && for C in $(CFGS); do ./$(RUNNABLE) ../$$C || exit; done
65
66 run_parallel: $(DIR_PARALLEL)
67 cd $(DIR_PARALLEL) && for C in $(CFGS); do $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) ../$$C || exit; done
68
69 runall: run_single run_parallel
70
71 clean distclean:
72 rm -rf $(GENERATED_DIRS)
73
This page took 0.030968 seconds and 4 git commands to generate.