Merge github.com:eclipse/titan.core
[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 #
12 ##############################################################################
13 TOPDIR := ../../../
14 include $(TOPDIR)/Makefile.regression
15
16 FILES := references.ttcn references.cfg
17 RUNNABLE := references
18 CFG := references.cfg
19 DIR_SINGLE := dir_single_mode
20 DIR_PARALLEL := dir_parallel_mode
21 GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
22
23 COVERAGE_FLAG :=
24 ifeq ($(COVERAGE), yes)
25 COVERAGE_FLAG += -C
26 endif
27
28 MAKE_PROG := $(MAKE)
29
30 # List of fake targets:
31 .PHONY: all clean run run_single run_parallel runall
32
33 all: $(GENERATED_DIRS)
34
35 dir_single_mode:
36 mkdir $@
37 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
38 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) -s ./* && $(MAKE_PROG)
39
40 dir_parallel_mode:
41 mkdir $@
42 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
43 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) ./* && $(MAKE_PROG)
44
45 run: $(GENERATED_DIRS)
46 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
47 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
48
49 # To run all tests, possibly in parallel
50 run_single: $(DIR_SINGLE)
51 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG)
52 run_parallel: $(DIR_PARALLEL)
53 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG)
54 runall: run_single run_parallel
55
56 clean distclean:
57 rm -rf $(GENERATED_DIRS)
58
This page took 0.033059 seconds and 6 git commands to generate.