]> git.ipfire.org Git - thirdparty/automake.git/commit
python: extend and improve tests, fix minor glitches
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 1 Feb 2011 22:22:08 +0000 (23:22 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 6 Feb 2011 17:33:33 +0000 (18:33 +0100)
commit6366a170d89eaaf6c3f119dc999035eb7d5a5800
tree5caed4275cd445f7fca748acb9f555ef2860271b
parente12be9450726e26136a6bc64f7df47ced18f6671
python: extend and improve tests, fix minor glitches

* m4/python.m4 (AM_PATH_PYTHON): Ensure the "checking ..." messages
from configure are always complete, even in case of failure.  Tiny
cosmetic improvement in info/error messages.
* tests/python.test: Also check that automake complains if the
PYTHON primary is used but the `py-compile' script is not present.
Make grepping of generated Makefile.in laxer w.r.t. whitespace.
Add trailing `:' command.
* tests/python2.test: Remove repeated calls aclocal: they are
useless because configure.in is never modified.  Make grepping
of automake stderr more comprehensive.  Remove the pre-existing
`py-compile' file before trying to install it with `--add-missing'.
Add trailing `:' command.
* tests/python3.test: Add trailing `:' command.
* tests/python11.test: Likewise.
* tests/python4.test: Likewise.  Also, try to pass PYTHON config
variable to configure from the environment, rather than only from
the command line.
* tests/python5.test: Ensure that the "checking ..." messages from
configure are always complete.  Use proper m4 quoting.  Add a
trailing `:' command.
* tests/python6.test: Simplify test logic, by checking for files
created by configure rather then grepping its output.
* tests/python7.test: Likewise.
* tests/python8.test: Also check that `$PYTHON' is meaningfully
set in the ACTION-IF-TRUE argument of AM_PATH_PYTHON.
* tests/python9.test: Likewise.
* tests/python10.test: Add trailing `:' command.
(Makefile.am): Declare `disttest' target as `.PHONY', and add
an `ls -l' to its recipe, for debugging.
* tests/nobase-python.test: In testing "make uninstall" and
"make install" results, prefer idioms that make verbose logs
more helpful.  Remove a couple of lines of dead code.  Add a
trailing `:' command.
* tests/python5b.test: New test, checking that configure performs
the check on the python version even when the choice of the python
interpreter is forced by the user.
* tests/python-dist.test: New test, checking the distribution of
*_PYTHON files.
* tests/python-vars.test: New test, checking that AM_PATH_PYTHON
correctly set all the output variables advertised in the manual.
* tests/python-virtualenv.test: New test, checking that python
support offered by automake works well with "virtual python
environments" created by the `virtualenv' program.
* tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
checks made slightly stricter.
* tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
* tests/instdir-ltlib.test: Likewise.
* tests/Makefile.am (TESTS): Update.
22 files changed:
ChangeLog
m4/python.m4
tests/Makefile.am
tests/Makefile.in
tests/instdir-ltlib.test
tests/instdir-prog.test
tests/nobase-python.test
tests/python-dist.test [new file with mode: 0755]
tests/python-vars.test [new file with mode: 0755]
tests/python-virtualenv.test [new file with mode: 0755]
tests/python.test
tests/python10.test
tests/python11.test
tests/python2.test
tests/python3.test
tests/python4.test
tests/python5.test
tests/python5b.test [new file with mode: 0755]
tests/python6.test
tests/python7.test
tests/python8.test
tests/python9.test