summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2015-07-29 21:54:07 -0700
committerAdam Hupp <adam@hupp.org>2015-07-29 21:54:50 -0700
commita818eda7e3e163d6179f9a6a381856ffb00722ac (patch)
treef89650a7cf74a49eecd992a8fb986070fac0239c
parente479096d5b08af12f3f6eb47290932c9f813acdd (diff)
downloadpython-magic-a818eda7e3e163d6179f9a6a381856ffb00722ac.tar.gz
Include tests in the sdist tarball
-rwxr-xr-xtest/run.sh12
-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)bin124365 -> 124365 bytes
-rw-r--r--test/testdata/magic.pyc (renamed from testdata/magic.pyc)bin1797 -> 1797 bytes
-rw-r--r--test/testdata/test.gz (renamed from testdata/test.gz)bin40 -> 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-xtests.sh10
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/test.py b/test/test.py
index f9c9c41..f9c9c41 100644
--- a/test.py
+++ b/test/test.py
diff --git a/testdata/keep-going.jpg b/test/testdata/keep-going.jpg
index c15171d..c15171d 100644
--- a/testdata/keep-going.jpg
+++ b/test/testdata/keep-going.jpg
Binary files differ
diff --git a/testdata/magic.pyc b/test/testdata/magic.pyc
index ba801e0..ba801e0 100644
--- a/testdata/magic.pyc
+++ b/test/testdata/magic.pyc
Binary files differ
diff --git a/testdata/test.gz b/test/testdata/test.gz
index 5d847dd..5d847dd 100644
--- a/testdata/test.gz
+++ b/test/testdata/test.gz
Binary files differ
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