From: Oleg Broytman Date: Tue, 23 Aug 2016 20:18:06 +0000 (+0300) Subject: Run tests with python2 and python3 X-Git-Tag: 2.7.0~14 X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=commitdiff_plain;h=5c827bf076452564b9e052a22888675fa7678736 Run tests with python2 and python3 --- diff --git a/test/Makefile b/test/Makefile index 88ee55d..fc8fe45 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,7 +1,8 @@ .PHONY: all all: - ./test_all + PYTHON=python2 ./test_all + PYTHON=python3 ./test_all .PHONY: clean diff --git a/test/test_all b/test/test_all index 69eb614..b05f383 100755 --- a/test/test_all +++ b/test/test_all @@ -15,7 +15,7 @@ test1() { expfile="$1" shift - ../mimedecode.py -H test -f utf-8 "$@" input/"$infile" >tmp/"$expfile" || return 1 + $PYTHON ../mimedecode.py -H test -f utf-8 "$@" input/"$infile" >tmp/"$expfile" || return 1 if cmp -s expected/"$expfile" tmp/"$expfile"; then rm tmp/"$expfile" && return 0 || return 1 else