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