File: test.sh

package info (click to toggle)
pyxb 1.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 63,792 kB
  • ctags: 48,994
  • sloc: python: 235,928; sh: 803; xml: 657; makefile: 57
file content (16 lines) | stat: -rwxr-xr-x 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

fail () {
  echo 1>&2 "${test_name} FAILED: ${@}"
  exit 1
}

xmllint --schema custom.xsd test.xml || fail Test document is not valid

rm -rf raw *.pyc
pyxbgen \
    -m custom \
    -u custom.xsd \
    --write-for-customization
python tst-normal.py || fail Normal customization failed
python tst-introspect.py || fail Introspection customization failed