bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30556: [PATCH] Python tests should run with multiple python versions


From: Bogdan
Subject: bug#30556: [PATCH] Python tests should run with multiple python versions
Date: Sun, 26 Mar 2023 13:21:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

Hi.

I have both Python v2 and v3 installed on my system. The tests shown in the provided error log pass for me, in all cases:

- no version - defaults to 3.9.8

make check TESTS='t/nobase-python.sh t/py-compile-basic.sh t/py-compile-basedir.sh t/py-compile-destdir.sh t/py-compile-option-terminate.sh t/python3.sh t/python10.sh t/python12.sh '

- explicit v2 (2.7.18):

PYTHON=python2 make check TESTS='t/nobase-python.sh t/py-compile-basic.sh t/py-compile-basedir.sh t/py-compile-destdir.sh t/py-compile-option-terminate.sh t/python3.sh t/python10.sh t/python12.sh '

- explicit v3:

PYTHON=python3 make check TESTS='t/nobase-python.sh t/py-compile-basic.sh t/py-compile-basedir.sh t/py-compile-destdir.sh t/py-compile-option-terminate.sh t/python3.sh t/python10.sh t/python12.sh '


I guess this got fixed in the repository since the defect was reported. Some of the tests touch the "uninstall" target and that certainly was changed.

My Automake version:
- branch: master
- last commit ID: 0901ccdd0cb21bfa3911a2668615e388fef94426
- last commit date: Wed Mar 1 15:03:30 2023 -0800

Actually, I could fix t/python-prefix.sh to work with Python v2 and t/python-virtualenv.sh to work at all (didn't work by default for me). Patch attached. Now all tests with "py" in the name pass on my system (both with v2 and v3). I assume that Automake, 'make install' and 'make uninstall' do their job correctly (and that's most probably true) and it's just the tests that were doing wrong.


--
Regards - Bogdan ('bogdro') D.                 (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux):    http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft  http://bogdro.evai.pl/soft4asm
www.Xiph.org  www.TorProject.org  www.LibreOffice.org  www.GnuPG.org

Attachment: automake-fix-python-tests-mail.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]