Debian Codegraph @

regression_test/cfgFile/ordered_include/Makefile

raw symbols SCIP
1 ##############################################################################
2 # Copyright (c) 2000-2021 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 v2.0
5 # which accompanies this distribution, and is available at
6 # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 #
8 # Contributors:
9 # Balasko, Jeno
10 # Szabados, Kristof
11 # Szabo, Bence Janos
12 #
13 ##############################################################################
14 TOPDIR := ../../
15 include $(TOPDIR)/Makefile.regression
16
17 #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
18 FILES := oi.ttcn
19 RUNNABLE := oi
20
21 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
22
23 DIR_SINGLE := dir_single_mode
24 DIR_PARALLEL := dir_parallel_mode
25 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
26
27 COVERAGE_FLAG :=
28 ifeq ($(COVERAGE), yes)
29 COVERAGE_FLAG += -C
30 endif
31
32 ifdef DYN
33 ifeq ($(PLATFORM), WIN32)
34 export PATH:=$(PATH):$(TTCN3_DIR)/lib:$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
35 else
36 export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(ABS_SRC)/$(DIR_SINGLE):$(ABS_SRC)/$(DIR_PARALLEL):
37 endif
38 endif
39
40 MAKE_PROG := $(MAKE)
41
42 # List of fake targets:
43 .PHONY: all clean run run_single run_parallel runall
44
45 all: $(GENERATED_DIRS)
46
47 dir_single_mode:
48 mkdir $@
49 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
50 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) $(RT2_FLAG) -s ./* && $(MAKE_PROG)
51
52 dir_parallel_mode:
53 mkdir $@
54 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
55 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) $(RT2_FLAG) ./* && $(MAKE_PROG)
56
57 run: clean run_single run_parallel
58
59 #run: $(GENERATED_DIRS)
60 # cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
61 # cd $(DIR_PARALLEL) && for C in $(CFGS); do $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $$(C) || exit; done
62
63 # To run all tests, possibly in parallel
64 run_single: $(DIR_SINGLE)
65 cd $(DIR_SINGLE) && for C in $(CFGS); do ./$(RUNNABLE) ../$$C || exit; done
66
67 run_parallel: $(DIR_PARALLEL)
68 cd $(DIR_PARALLEL) && for C in $(CFGS); do $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) ../$$C || exit; done
69
70 runall: run_single run_parallel
71
72 clean distclean:
73 rm -rf $(GENERATED_DIRS)
74