Debian Codegraph @

regression_test/compileonly/mfgen-tpd/HR30356/Makefile

raw
1 ##############################################################################
2 # Copyright (c) 2000-2021 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 v2.0
5 # which accompanies this distribution, and is available at
6 # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 #
8 # Contributors:
9 # Balasko, Jeno
10 #
11 ##############################################################################
12 #Makefile to test HR30356
13 TOPDIR := ../../../
14 include $(TOPDIR)/Makefile.regression
15
16 ifdef LCOV
17 COVERAGE_FLAG := -C
18 endif
19
20 # ${MAKEPROG} has the same content as the built-in ${MAKE},
21 # except the special handling of ${MAKE} does not apply.
22 # If we used ${MAKE} in the rules below, 'make -n' would succeed once,
23 # then fail on every subsequent invocation until a 'make clean' is done.
24 MAKEPROG := ${MAKE}
25
26 all: CheckErrorLog
27
28 GenerateMakefile:
29 ${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" >out 2>err || true
30
31 CheckErrorLog: GenerateMakefile
32 if [ `grep -c "Element 'WrongElement': This element is not expected." ./err` -ne 1 ]; \
33 then exit 1; fi
34 if [ `grep -c "ttcn3_makefilegen: error: TPD file .* is invalid according to schema " ./err` -ne 1 ]; \
35 then exit 1; fi
36 if [ `grep -c "ttcn3_makefilegen: error: Failed to process .*testport.tpd" ./err` -ne 1 ]; \
37 then exit 1; fi
38 clean:
39 -rm -rf client/bin
40 -rm -rf controller/bin
41 -rm -rf server/bin
42 -rm -rf testport/bin
43
44 distclean: clean
45 -rm -f out err
46
47 .PHONY: all clean distclean GenerateMakefile CheckErrorLog