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 |
16 | TPD_DIR="./tpdTest/" |
af710487 |
17 | XSD_DIR="$TTCN3_DIR/etc/xsd/" |
18 | XSD="TPD.xsd" |
19 | |
20 | find $TPD_DIR -type f -name *.tpd | xargs -I {} xmllint --noout --schema $XSD_DIR/$XSD {} |
21 | |
22 | if [ $? -ne 0 ]; then |
23 | echo "Not every .tpd is valid! Overall verdict: fail" |
24 | exit 1 |
25 | else |
26 | echo "Every .tpd is valid! Overall verdict: pass" |
27 | exit 0 |
28 | fi |