diff options
| author | Adam Hupp <adam@hupp.org> | 2015-07-29 21:54:07 -0700 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2015-07-29 21:54:50 -0700 |
| commit | a818eda7e3e163d6179f9a6a381856ffb00722ac (patch) | |
| tree | f89650a7cf74a49eecd992a8fb986070fac0239c | |
| parent | e479096d5b08af12f3f6eb47290932c9f813acdd (diff) | |
| download | python-magic-a818eda7e3e163d6179f9a6a381856ffb00722ac.tar.gz | |
Include tests in the sdist tarball
| -rwxr-xr-x | test/run.sh | 12 | ||||
| -rw-r--r-- | test/test.py (renamed from test.py) | 0 | ||||
| -rw-r--r-- | test/testdata/keep-going.jpg (renamed from testdata/keep-going.jpg) | bin | 124365 -> 124365 bytes | |||
| -rw-r--r-- | test/testdata/magic.pyc (renamed from testdata/magic.pyc) | bin | 1797 -> 1797 bytes | |||
| -rw-r--r-- | test/testdata/test.gz (renamed from testdata/test.gz) | bin | 40 -> 40 bytes | |||
| -rw-r--r-- | test/testdata/test.pdf (renamed from testdata/test.pdf) | 0 | ||||
| -rw-r--r-- | test/testdata/text-iso8859-1.txt (renamed from testdata/text-iso8859-1.txt) | 0 | ||||
| -rw-r--r-- | test/testdata/text.txt (renamed from testdata/text.txt) | 0 | ||||
| -rw-r--r-- | test/testdata/λ (renamed from testdata/λ) | 0 | ||||
| -rwxr-xr-x | tests.sh | 10 |
10 files changed, 12 insertions, 10 deletions
diff --git a/test/run.sh b/test/run.sh new file mode 100755 index 0000000..3768497 --- /dev/null +++ b/test/run.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# ensure we can use unicode filenames in the test +export LC_ALL=en_US.UTF-8 +THISDIR=`dirname $0` +export PYTHONPATH=${THISDIR}/.. + +python2.6 ${THISDIR}/test.py +python2.7 ${THISDIR}/test.py +python3 ${THISDIR}/test.py diff --git a/testdata/keep-going.jpg b/test/testdata/keep-going.jpg Binary files differindex c15171d..c15171d 100644 --- a/testdata/keep-going.jpg +++ b/test/testdata/keep-going.jpg diff --git a/testdata/magic.pyc b/test/testdata/magic.pyc Binary files differindex ba801e0..ba801e0 100644 --- a/testdata/magic.pyc +++ b/test/testdata/magic.pyc diff --git a/testdata/test.gz b/test/testdata/test.gz Binary files differindex 5d847dd..5d847dd 100644 --- a/testdata/test.gz +++ b/test/testdata/test.gz diff --git a/testdata/test.pdf b/test/testdata/test.pdf index b986617..b986617 100644 --- a/testdata/test.pdf +++ b/test/testdata/test.pdf diff --git a/testdata/text-iso8859-1.txt b/test/testdata/text-iso8859-1.txt index 524a1d0..524a1d0 100644 --- a/testdata/text-iso8859-1.txt +++ b/test/testdata/text-iso8859-1.txt diff --git a/testdata/text.txt b/test/testdata/text.txt index 476f506..476f506 100644 --- a/testdata/text.txt +++ b/test/testdata/text.txt diff --git a/testdata/λ b/test/testdata/λ index 9daeafb..9daeafb 100644 --- a/testdata/λ +++ b/test/testdata/λ diff --git a/tests.sh b/tests.sh deleted file mode 100755 index 82bea76..0000000 --- a/tests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -set -e - -# ensure we can use unicode filenames in the test -export LC_ALL=en_US.UTF-8 - -python2.6 test.py -python2.7 test.py -python3 test.py |
