summaryrefslogtreecommitdiff
path: root/gitlab-ci/clientdata/testxml.sh
blob: 9295ec3fa87ac5af8a5b63477979753542f18414 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

source ./tools/gitlab-ci/init.sh

clientdata_init

cd tools/testxml

./xsdcheck.sh
export RES=$(cat errors.txt)
if [[ -n "${RES}" ]]; then
    echo "xml check failed" >../../clientdata/shared/error.log
    echo ${RES} >>../../clientdata/shared/error.log
    cat ../../clientdata/shared/error.log
    exit 1
fi

echo >../../clientdata/shared/error.log
./testxml.py silent >../../clientdata/shared/error.log
if [ "$?" != 0 ]; then
    echo "test xml error"
    cat ../../clientdata/shared/error.log
    exit 1
fi

echo >../../clientdata/shared/error.log