Sync with 5.2.0
[deliverable/titan.core.git] / regression_test / XML / tpdValidTest / tpdValidTest.sh
1 #!/bin/bash
2 ###############################################################################
3 # Copyright (c) 2000-2014 Ericsson Telecom AB
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Eclipse Public License v1.0
6 # which accompanies this distribution, and is available at
7 # http://www.eclipse.org/legal/epl-v10.html
8 ###############################################################################
9
10 TPD_DIR="$WORKSPACE/titan_eclipse/Semantic_Analizer_Tests/tpdTest/"
11 XSD_DIR="$TTCN3_DIR/etc/xsd/"
12 XSD="TPD.xsd"
13
14 find $TPD_DIR -type f -name *.tpd | xargs -I {} xmllint --noout --schema $XSD_DIR/$XSD {}
15
16 if [ $? -ne 0 ]; then
17 echo "Not every .tpd is valid! Overall verdict: fail"
18 exit 1
19 else
20 echo "Every .tpd is valid! Overall verdict: pass"
21 exit 0
22 fi
This page took 0.03356 seconds and 5 git commands to generate.