Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y xmldiff | ||
install: | ||
- pip install -r requirements.txt | ||
- python setup.py install | ||
script: bash tests/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lxml>=2.2 | ||
httplib2>=0.6 | ||
numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/bin/bash | ||
|
||
|
||
TESTDIR=`dirname $0` | ||
cd $TESTDIR | ||
|
||
GOOD=1 | ||
|
||
echo "Testing CGN">&2 | ||
python cgn.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
echo "Testing datatypes">&2 | ||
python datatypes.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
|
||
echo "Testing evaluation">&2 | ||
python evaluation.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
|
||
echo "Testing search">&2 | ||
python search.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
echo "Testing textprocessors">&2 | ||
python textprocessors.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
|
||
echo "Testing statistics">&2 | ||
python statistics.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
|
||
echo "Testing formats">&2 | ||
python formats.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
echo "Testing folia">&2 | ||
python folia.py | ||
if [ $? -ne 0 ]; then | ||
echo "Test failed!!!" >&2 | ||
GOOD=0 | ||
fi | ||
|
||
if [ $GOOD -eq 1 ]; then | ||
echo "Done, all tests passed!" >&2 | ||
exit 0 | ||
else | ||
echo "TESTS FAILED!!!!" >&2 | ||
exit 1 | ||
fi | ||
|
||
|