File: runtests.sh

package info (click to toggle)
python-feedvalidator 0~svn1022-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 652 kB
  • ctags: 2,452
  • sloc: python: 9,481; makefile: 27; sh: 8
file content (24 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

PYTHON=${1:-${PYTHON:-python}}

# Run all project tests

cd "`dirname "$0"`"

${PYTHON} validtest.py

# Make sure XML encoding detection works
${PYTHON} tests/genXmlTestcases.py && python tests/testXmlEncoding.py

# Confirm that XML is decoded correctly
${PYTHON} tests/testXmlEncodingDecode.py

# Make sure media type checks are consistent
${PYTHON} tests/testMediaTypes.py

# Test URI equivalence
${PYTHON} tests/testUri.py

# Ensure check.cgi runs cleanly, at least for a GET
PYTHONPATH="`pwd`/tests:." REQUEST_METHOD=GET FEEDVALIDATOR_HOME="`pwd`/.." python - <../check.cgi >/dev/null || echo >&2 "check.cgi failed to run"