From: Oleg Broytman Date: Sat, 21 Oct 2017 19:05:36 +0000 (+0300) Subject: Tests: Install ~/.mime.types for tests if the current user doesn't have it X-Git-Tag: 2.8.0~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d7a171bdad1f8da709ef82a2eaeb231d6234cfc5;p=mimedecode.git Tests: Install ~/.mime.types for tests if the current user doesn't have it Useful for Travis. --- diff --git a/test/.mime.types b/test/.mime.types new file mode 100644 index 0000000..fcaabf9 --- /dev/null +++ b/test/.mime.types @@ -0,0 +1,4 @@ +# File extension -> MIME type map. +# MIME type Extension + +multipart/mixed dig diff --git a/test/test_all b/test/test_all index df65454..83fd08b 100755 --- a/test/test_all +++ b/test/test_all @@ -10,6 +10,8 @@ export LC_CTYPE && MAILCAPS="`pwd`"/.mailcap && export MAILCAPS && +test -r "$HOME"/.mime.types || cp -p .mime.types "$HOME"/.mime.types && + : ${PYTHON:=python} RC=0 diff --git a/tox.ini b/tox.ini index c8977d4..49dffc9 100644 --- a/tox.ini +++ b/tox.ini @@ -21,4 +21,4 @@ commands = {envpython} --version {envpython} -c "import struct; print(struct.calcsize('P') * 8)" ./test_all -#whitelist_externals = +passenv = HOME