Commit 5d15a81a authored by balaskoa's avatar balaskoa
Browse files

removing unnecessary Makefiles 2


Signed-off-by: default avatarbalaskoa <Jeno.Balasko@ericsson.com>
Change-Id: Id09bcd4de2488c09411372205936425a10ab6274
parent 623510af
##############################################################################
# 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:
# Balasko, Jeno
# Beres, Szabolcs
# Raduly, Csaba
#
##############################################################################
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.
MAKEPROG := ${MAKE}
all: CheckHelloTpd
BuildHelloTpd:
mkdir -p HelloTpd/bin && cd HelloTpd/bin \
&& $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t ../HelloTpd.tpd 2>&1 | tee ../../output
CheckHelloTpd: BuildHelloTpd
if [ `grep -c "Makefile skeleton was generated." ./output` -ne 1 ]; \
then exit 1; fi
clean:
-rm -rf HelloTpd/bin output
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
##############################################################################
# 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:
# Balasko, Jeno
# Raduly, Csaba
#
##############################################################################
TOPDIR := ../../..
include $(TOPDIR)/Makefile.regression
all run:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -fo generated_makefile /dev/null
clean distclean:
rm -f generated_makefile
##############################################################################
# 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:
# Balasko, Jeno
# Raduly, Csaba
#
##############################################################################
TOPDIR := ../../..
include $(TOPDIR)/Makefile.regression
#
# Makefilegen is supposed to fail
#
all:
cd bin && \
if $(TTCN3_DIR)/bin/ttcn3_makefilegen -t ../counter.tpd > output.txt 2>&1 ; \
then echo makefilegen was supposed to fail!; exit 1; \
else if [ -h counter.ttcn ]; then echo symlink should not be created; exit 1; \
else echo OK; fi ; \
fi
clean distclean:
$(RM) bin/output.txt
##############################################################################
# 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:
# Balasko, Jeno
# Beres, Szabolcs
# Raduly, Csaba
#
##############################################################################
TOPDIR := ../../..
include $(TOPDIR)/Makefile.regression
all:
@echo Howdy!
-mkdir -p bin
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f -t counter.tpd && \
if [ -h bin/counter.ttcn ] ; then \
echo success ; \
else \
echo Symlink bin/counter.ttcn does not exist; exit 1; \
fi ; \
clean distclean:
$(RM) bin/*
##############################################################################
# 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:
# Balasko, Jeno
# Ormandi, Matyas
#
##############################################################################
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.
MAKEPROG := ${MAKE}
all: CheckHelloTpd
BuildHelloTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -fgp $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t HelloTpd/HelloTpd.tpd 2>&1 | tee output
CheckHelloTpd: BuildHelloTpd
if [ -e "Hello000/bin" ] || [ -e "Hello123/bin" ] || [ `grep -c "Makefile skeleton was generated." ./output` -ne 1 ]; \
then exit 1; \
fi
clean:
-rm -rf HelloTpd/bin output
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
##############################################################################
# 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:
# Balasko, Jeno
# Beres, Szabolcs
# Raduly, Csaba
#
##############################################################################
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.
MAKEPROG := ${MAKE}
all: CheckHelloTpd
BuildHelloTpd:
mkdir -p HelloTpd/bin && cd HelloTpd/bin \
&& $(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t ../HelloTpd.tpd -b test1 && ${MAKEPROG}
CheckHelloTpd: BuildHelloTpd
if [ ! -f HelloTpd/bin/test1_config.exe ]; then exit 1; fi
clean:
-rm -rf HelloTpd/bin
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildHelloTpd CheckHelloTpd
##############################################################################
# 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:
# Baranyi, Botond
#
##############################################################################
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.
MAKEPROG := ${MAKE}
all: CheckTpdTrue CheckTpdFalse CheckTpdMissing
BuildTpdTrue:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd
CheckTpdTrue: BuildTpdTrue
if [ ! -f "./bin/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS = -L -h" ./bin/Makefile` -ne 1 ]; \
then echo "Makefilegen charstring compat test: Overall verdict: fail" && exit 1; fi
BuildTpdFalse:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -b False
CheckTpdFalse: BuildTpdFalse
if [ ! -f "./bin2/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS = -L -h" ./bin2/Makefile` -ne 0 ]; \
then echo "Makefilegen charstring compat test: Overall verdict: fail" && exit 1; fi
BuildTpdMissing:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -b Missing
CheckTpdMissing: BuildTpdMissing
if [ ! -f "./bin3/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS = -L -h" ./bin3/Makefile` -ne 0 ]; \
then echo "Makefilegen charstring compat test: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf bin bin2 bin3
distclean: clean
-rm -f *.out
.PHONY: all clean distclean CheckTpdTrue CheckTpdFalse CheckTpdMissing BuildTpdTrue BuildTpdFalse BuildTpdMissing
##############################################################################
# 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 := ${MAKE}
all: Recursive RecursiveAbsolute
Recursive:
-rm -rf a/binDefault b/binDefault c/binDefault && \
cd c && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t c.tpd -cVfgpl && cd binDefault && make shared_objects && \
cd ../../b && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t b.tpd -cVfgpl && cd binDefault && make shared_objects && \
cd ../../a && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -FTrcgpl && cd binDefault && make > compile.txt && \
if [ `grep -c "ModuleB\." compile.txt` -ne 4 ] || [ `grep -c "ModuleC\." compile.txt` -ne 5 ]; \
then echo "Makefilegen compile once test failed: Overall verdict: fail" && exit 1; fi
RecursiveAbsolute:
-rm -rf a/binDefault b/binDefault c/binDefault && \
cd c && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-at c.tpd -cVfgpl && cd binDefault && make shared_objects && \
cd ../../b && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-at b.tpd -cVfgpl && cd binDefault && make shared_objects && \
cd ../../a && $(TTCN3_DIR)/bin/ttcn3_makefilegen $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-at a.tpd -FTrcgpl && cd binDefault && make > compile.txt && \
if [ `grep -c "ModuleB\." compile.txt` -ne 4 ] || [ `grep -c "ModuleC\." compile.txt` -ne 5 ]; \
then echo "Makefilegen compile once test failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf a/binDefault b/binDefault c/binDefault
distclean: clean
-rm -f *.out
.PHONY: all clean distclean Normal Recursive RecursiveAbsolute
##############################################################################
# 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:
# Balasko, Jeno
# Szalay, Akos
#
##############################################################################
#Makefile to test HR30356
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.
MAKEPROG := ${MAKE}
all: CheckDependencies
GenerateMakefile:
${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" || true
CheckDependencies: GenerateMakefile
$(MAKEPROG) -C controller/bin dep
ls -R > dir.txt
if [ `grep -c "controller.d" ./dir.txt` -ne 1 ]; then exit 1; fi
clean:
-rm -rf client/bin
-rm -rf controller/bin
-rm -rf server/bin
-rm -rf testport/bin
distclean: clean
-rm -f dir.txt
.PHONY: all clean distclean GenerateMakefile CheckDependencies
##############################################################################
# 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 := ../../../..
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.
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 "c.tpd's name attribute should be the same as the referenced project's name" ./output` -ne 2 ]; \
then echo "Makefilegen different tpd name in referenced project test failed: Overall verdict: fail" && exit 1; fi
if [ `grep -c "b.tpd's name attribute should be the same as the referenced project's name" ./output` -ne 1 ]; \
then echo "Makefilegen different tpd name in referenced project test failed: Overall verdict: fail" && exit 1; fi
if [ `grep -c "a.tpd's name attribute should be the same as the referenced project's name" ./output` -ne 1 ]; \
then echo "Makefilegen different tpd name in referenced project test failed: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf output a_binDefault b_binDefault 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.
MAKEPROG := ${MAKE}
all: CheckTpd
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd
# when licensing is off then the OPENSSL_DIR is not generated into the makefile
# TODO: regression test does not see the LICENSING variable
#RES := 1
#ifeq ($(LICENSING), yes)
# RES := 1
#endif
# || [ `grep -c "# OPENSSL_DIR = \\$$(TTCN3_DIR)" ./bin/Makefile` -ne $(RES) ] \
CheckTpd: BuildTpd
if [ ! -f "./bin/Makefile" ] \
|| [ `grep -c "# XMLDIR = \\$$(TTCN3_DIR)" ./bin/Makefile` -ne 1 ]; \
then echo "Makefilegen disablePredefinedExternalFolder test: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf bin
distclean: clean
-rm -f *.out
.PHONY: all clean distclean BuildTpd CheckTpd
##############################################################################
# Copyright (c) 2018 Semihalf sp. z o.o.
# 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:
# Klimkowicz, Jacek
#
##############################################################################
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.
MAKEPROG := ${MAKE}
all: CheckTpd CheckTpdTrue CheckTpdFalse
BuildTpd:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd
CheckTpd: BuildTpd
if [ ! -f "./bin/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS =.*-D" ./bin/Makefile` -ne 0 ]; \
then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
BuildTpdTrue:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -b True
CheckTpdTrue: BuildTpdTrue
if [ ! -f "./bin2/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS =.*-D" ./bin2/Makefile` -ne 1 ]; \
then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
BuildTpdFalse:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -b False
CheckTpdFalse: BuildTpdFalse
if [ ! -f "./bin3/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS =.*-D" ./bin3/Makefile` -ne 0 ]; \
then echo "Makefilegen disableUserInformation test: Overall verdict: fail" && exit 1; fi
clean:
-rm -rf bin bin2 bin3
distclean: clean
-rm -f *.out
.PHONY: all clean distclean CheckTpd CheckTpdTrue CheckTpdFalse BuildTpd BuildTpdTrue BuildTpdFalse
##############################################################################
# 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.
MAKEPROG := ${MAKE}
all: CheckTpdTrue CheckTpdFalse CheckTpdMissing
BuildTpdTrue:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd
CheckTpdTrue: BuildTpdTrue
if [ ! -f "./bin/Makefile" ] \
|| [ `grep -c "COMPILER_FLAGS = -L -O" ./bin/Makefile` -ne 1 ]; \
then echo "Makefilegen enable_legacy_encoding test: Overall verdict: fail" && exit 1; fi
BuildTpdFalse:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f $(MFGEN_FLAGS) $(COVERAGE_FLAG) \
-t a.tpd -b False