File: test.sh

package info (click to toggle)
pyxb 1.2.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 42,668 kB
  • sloc: python: 239,437; sh: 905; xml: 690; makefile: 60
file content (12 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

: ${PYXB_TEST_ROOT:=${PYXB_ROOT}/tests}
. ${PYXB_TEST_ROOT}/support.sh

rm -f content.py
pyxbgen \
    -u content.xsd -m content \
    || fail generating bindings
python showcontent.py > test.out || fail running
cmp test.out test.expected || fail output comparison
passed