Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / compileonly / mfgen-tpd / HR30356 / Makefile
CommitLineData
970ed795 1###############################################################################
3abe9331 2# Copyright (c) 2000-2015 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
7###############################################################################
8#Makefile to test HR30356
9TOPDIR := ../../../
10include $(TOPDIR)/Makefile.regression
11
12ifdef LCOV
13COVERAGE_FLAG := -C
14endif
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.
20MAKEPROG := ${MAKE}
21
22all: CheckErrorLog
23
24GenerateMakefile:
25 ${TTCN3_DIR}/bin/ttcn3_makefilegen -Fgrc -t "controller/controller.tpd" >out 2>err || true
26
27CheckErrorLog: 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
34clean:
35 -rm -rf client/bin
36 -rm -rf controller/bin
37 -rm -rf server/bin
38 -rm -rf testport/bin
39
40distclean: clean
41 -rm -f out err
42
43.PHONY: all clean distclean GenerateMakefile CheckErrorLog
This page took 0.052809 seconds and 5 git commands to generate.