implemented new code splitting mechanism (split to equal slices)
[deliverable/titan.core.git] / regression_test / lazyEval / Makefile
CommitLineData
d44e3c4f 1##############################################################################
2# Copyright (c) 2000-2016 Ericsson Telecom AB
970ed795
EL
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# Szabados, Kristof
14e21cff 11# Szabo, Bence Janos
d44e3c4f 12#
13##############################################################################
970ed795
EL
14TOPDIR := ../
15include $(TOPDIR)/Makefile.regression
16
17MAKE_PROG := $(MAKE)
18
19TTCN_FILE := lazy_main.ttcn
20TTCN_FILES := lazy_main.ttcn lazy_A.ttcn lazy_B.ttcn lazy_defs.ttcn LazyASNTypes.asn
21CFG := lazy.cfg
22
23FILES := $(TTCN_FILES) $(CFG)
24
25RUNNABLE := $(TTCN_FILE:.ttcn=)
26
27#ifeq ($(PLATFORM), WIN32)
28#RUNNABLE += .exe
29#endif
30
3abe9331 31COVERAGE_FLAG :=
32ifeq ($(COVERAGE), yes)
33 COVERAGE_FLAG += -C
34endif
35
970ed795
EL
36DIR_SINGLE := dir_single_mode
37DIR_PARALLEL := dir_parallel_mode
38GENERATED_DIRS := $(DIR_SINGLE) $(DIR_PARALLEL)
39
40# List of fake targets:
41.PHONY: all clean run run_single run_parallel runall
42
43all: $(GENERATED_DIRS)
44
45$(DIR_SINGLE):
46 mkdir $@
47 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
14e21cff 48 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -s -e $(RUNNABLE) ./* && $(MAKE_PROG)
970ed795
EL
49
50$(DIR_PARALLEL):
51 mkdir $@
52 cd $@ && for file in $(FILES); do ln -s ../$$file || exit; done
14e21cff 53 cd $@ && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(COVERAGE_FLAG) $(SPLIT_FLAG) -e $(RUNNABLE) ./* && $(MAKE_PROG)
970ed795
EL
54
55run: $(GENERATED_DIRS)
56 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG) && grep "Overall verdict: pass" *.log
57 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG) && grep "Overall verdict: pass" *.log
58
59# To run all tests, possibly in parallel
60run_single: $(DIR_SINGLE)
61 cd $(DIR_SINGLE) && ./$(RUNNABLE) $(CFG) && grep "Overall verdict: pass" *.log
62
63run_parallel: $(DIR_PARALLEL)
64 cd $(DIR_PARALLEL) && $(TTCN3_DIR)/bin/ttcn3_start $(RUNNABLE) $(CFG) && grep "Overall verdict: pass" *.log
65
66runall: run_single run_parallel
67
68clean distclean:
69 rm -rf $(GENERATED_DIRS)
70
This page took 0.029511 seconds and 5 git commands to generate.