]> git.phdru.name Git - mimedecode.git/commitdiff
Run tests with python2 and python3
authorOleg Broytman <phd@phdru.name>
Tue, 23 Aug 2016 20:18:06 +0000 (23:18 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 23 Aug 2016 20:18:06 +0000 (23:18 +0300)
test/Makefile
test/test_all

index 88ee55d667b00e532086ab53befd5b247d6cde96..fc8fe4525fc6c586927811085b0abdce680f1375 100644 (file)
@@ -1,7 +1,8 @@
 
 .PHONY: all
 all:
-       ./test_all
+       PYTHON=python2 ./test_all
+       PYTHON=python3 ./test_all
 
 
 .PHONY: clean
index 69eb614c0bc4bebb2085f71570c99d4b5f50b80f..b05f3834eb03f335c3b62e828a3576430f5526f7 100755 (executable)
@@ -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