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