From 5c827bf076452564b9e052a22888675fa7678736 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 23 Aug 2016 23:18:06 +0300 Subject: [PATCH] Run tests with python2 and python3 --- test/Makefile | 3 ++- test/test_all | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5