Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / tpdValidTest / tpdValidTest.sh
CommitLineData
af710487 1#!/bin/bash
2###############################################################################
d44e3c4f 3# Copyright (c) 2000-2016 Ericsson Telecom AB
af710487 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
d44e3c4f 8#
9# Contributors:
10# Balasko, Jeno
11# Baranyi, Botond
12# Pilisi, Gergely
13#
af710487 14###############################################################################
15
3abe9331 16TPD_DIR="./tpdTest/"
af710487 17XSD_DIR="$TTCN3_DIR/etc/xsd/"
18XSD="TPD.xsd"
19
20find $TPD_DIR -type f -name *.tpd | xargs -I {} xmllint --noout --schema $XSD_DIR/$XSD {}
21
22if [ $? -ne 0 ]; then
23 echo "Not every .tpd is valid! Overall verdict: fail"
24 exit 1
25else
26 echo "Every .tpd is valid! Overall verdict: pass"
27 exit 0
28fi
This page took 0.025834 seconds and 5 git commands to generate.