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