Commit 623510af authored by balaskoa's avatar balaskoa
Browse files

removing unnecessary Makefiles 1


Signed-off-by: default avatarbalaskoa <Jeno.Balasko@ericsson.com>
Change-Id: I2300d1e04f31c817dfc1d4ff76353de0b6af2170
parent 0e5b00a1
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
#This tests that the -b goodConfig exists and it is being used.
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -b goodConfig
CheckTpd: BuildTpd
if [ ! -f "./binGood/Makefile" ] || [ `grep -c "EXECUTABLE = binGood" ./binGood/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 1 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf binGood
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
#This tests that 'a' references 'b' and 'b' references 'c' and 'a' requires
#'b''s '1' configuration and 'c''s '2' configuration.
#Additionally and 'b''s '1' configuration requires 'c''s '1' config.
#This tests that two different configuration was required for 'c' and
#an error is produced.
# a
# / \
# b:1/ \c:2
# / \
# b------>c
# b:1=>c:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output
CheckTpd: BuildTpd
if [ `grep -c "error: Required configuration is inconsistent or circular : Project 'c' cannot have 2 different configuration '2' and '1'" ./output` -ne 1 ]; \
then echo "Makefilegen required config test 10 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output a_binDefault b_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
#This tests that 'a' references 'b' and 'b' references 'c' and 'a' requires
#'b''s '1' configuration and 'c''s '2' configuration but 'c''s '2' configuration
#does not exists.
#Additionally and 'b''s '1' configuration requires 'c''s '1' config.
#This tests that two different configuration was required for 'c' but
#one of them does not exitst so a different error message produced than in test 10.
# a
# / \
# b:1/ \c:2 (not exist)
# / \
# b------>c
# b:1=>c:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output
CheckTpd: BuildTpd
if [ `grep -c "error: The active build configuration named '2' of project 'c' does not exist" ./output` -ne 1 ]; \
then echo "Makefilegen required config test 11 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output a_binDefault b_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
#This tests that 'a''s Default configuration requires 'a' with '1' configuration.
#This behaviour emits an error.
# a(a:default=>a:1)
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output
CheckTpd: BuildTpd
if [ `grep -c "error: Required configuration is inconsistent or circular : Project 'a' cannot have 2 different configuration 'Default' and '1'" ./output` -ne 1 ]; \
then echo "Makefilegen required config test 12 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# / \
# b c
# \ / d:1
# d
#Result will be: a:Default, b:Default, c:Default, d:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g
CheckTpd: BuildTpd
if [ ! -f "./a_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./a_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 13 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./b_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./b_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 13 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./c_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./c_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 13 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./d_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./d_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 13 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf a_binDefault b_binDefault c_binDefault d_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# / \
# / b:1 \
# b <-- c
# b:1=>d:1\ / d:1
# \ /
# d
#Result will be: a:Default, b:1, c:Default, d:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g
CheckTpd: BuildTpd
if [ ! -f "./a_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./a_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 14 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./b_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./b_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 14 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./c_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./c_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 14 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./d_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./d_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 14 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf a_binDefault b_bin1 c_binDefault d_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# / \
# / b:1 \
# b <-- c
# b:1=>d:2\ / d:1
# \ /
# d
#Result will be: Error: 'd' can't have '1' and '2' configuration at the same time.
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output
CheckTpd: BuildTpd
if [ `grep -c "error: Required configuration is inconsistent or circular : Project 'd' cannot have 2 different configuration '1' and '2'" ./output` -ne 1 ]; \
then echo "Makefilegen required config test 15 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output a_binDefault b_bin1 c_binDefault
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# / \
# / b:1 \
# b <-- c
# b:1=>d:1\
# \
# d
#Result will be: a:Default, b:1, c:Default, d:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g
CheckTpd: BuildTpd
if [ ! -f "./a_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./a_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 16 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./b_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./b_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 16 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./c_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./c_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 16 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./d_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./d_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 16 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf a_binDefault b_bin1 c_binDefault d_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# |
# b<---<
# | |
# c |b:1
# | |
# d>--->
#Result will be: Error
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output
CheckTpd: BuildTpd
if [ `grep -c "error: Required configuration is inconsistent or circular : Project 'b' cannot have 2 different configuration 'Default' and '1'" ./output` -ne 1 ]; \
then echo "Makefilegen required config test 17 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output a_binDefault
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# |
# b<---<
# c:1| |
# c |b:1
# c:1=>d:1| |
# d>--->
#Result will be: a:Default, b:Default, c:1, d:1
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -F $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g
CheckTpd: BuildTpd
if [ ! -f "./a_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./a_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 52 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./b_binDefault/Makefile" ] || [ `grep -c "EXECUTABLE = binDefault" ./b_binDefault/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 52 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./c_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./c_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 52 failed: Overall verdict: fail" && exit 1; fi
if [ ! -f "./d_bin1/Makefile" ] || [ `grep -c "EXECUTABLE = bin1" ./d_bin1/Makefile` -ne 1 ]; \
then echo "Makefilegen required config test 52 failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf a_binDefault b_binDefault c_bin1 d_bin1
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2000-2020 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Szabo, Bence Janos
#
##############################################################################
TOPDIR := ../../../..
include $(TOPDIR)/Makefile.regression
ifdef LCOV
COVERAGE_FLAG := -C
endif
# ${MAKEPROG} has the same content as the built-in ${MAKE},
# except the special handling of ${MAKE} does not apply.
# If we used ${MAKE} in the rules below, 'make -n' would succeed once,
# then fail on every subsequent invocation until a 'make clean' is done.
# Hierarchy
# a
# |
# b<---<
# b:Def=>c:1| |
# c |d:1=>b:1
# c:1=>d:1| |
# d>--->
#Result will be: Error
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -r -c -W -g 2>&1 | tee output