[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches
From: |
Ralf Wildenhues |
Subject: |
Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches |
Date: |
Fri, 11 Feb 2011 20:12:46 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
Hi Stefano,
* Stefano Lattarini wrote on Wed, Feb 02, 2011 at 12:10:15AM CET:
> Subject: [PATCH] python: extend and improve tests, fix minor glitches
>
[...]
> * tests/python-vars.test: New test, checking that AM_PATH_PYTHON
> correctly set all the output variables advertised in the manual.
This test fails for me, see below.
As a minor nit, the test trace contains hyped output again, I think
echo "$var=$val"
and
echo "address@hidden@"
would have resulted in both smaller trace output and also more
informative diff.
Cheers,
Ralf
FAIL: python-vars.test (exit: 2)
================================
/tmp/automake/build/tests:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
python-vars: running python -V
Python 2.6.5
+ set -e
+ pwd
/tmp/automake/build/tests/python-vars.dir
+ set -e
+ PYTHON=python
+ python -c import sys; print(sys.version[:3])
+ PYTHON_VERSION=2.6
+ python -c import sys; print(sys.platform)
+ PYTHON_PLATFORM=linux2
+ PYTHON_EXEC_PREFIX=${exec_prefix}
+ PYTHON_PREFIX=${prefix}
+ pythondir=${prefix}/lib/python2.6/site-packages
+ pyexecdir=${exec_prefix}/lib/python2.6/site-packages
+ pkgpythondir=${pythondir}/python-vars
+ pkgpyexecdir=${pyexecdir}/python-vars
+ pyvars=PYTHON_VERSION PYTHON_PLATFORM PYTHON_PREFIX PYTHON_EXEC_PREFIX
pythondir pyexecdir pkgpythondir pkgpyexecdir
+ cat
+ cat
+ cat
+ echo
+ echo
+ echo test-am:
+ eval val=$PYTHON_VERSION
+ val=2.6
+ echo ### PYTHON_VERSION ###
+ echo 2.6
+ echo
+ echo ### PYTHON_VERSION ###
+ echo @PYTHON_VERSION@
+ echo
+ echo test x'$(PYTHON_VERSION)' = x'2.6'
+ eval val=$PYTHON_PLATFORM
+ val=linux2
+ echo ### PYTHON_PLATFORM ###
+ echo linux2
+ echo
+ echo ### PYTHON_PLATFORM ###
+ echo @PYTHON_PLATFORM@
+ echo
+ echo test x'$(PYTHON_PLATFORM)' = x'linux2'
+ eval val=$PYTHON_PREFIX
+ val=${prefix}
+ echo ### PYTHON_PREFIX ###
+ echo ${prefix}
+ echo
+ echo ### PYTHON_PREFIX ###
+ echo @PYTHON_PREFIX@
+ echo
+ echo test x'$(PYTHON_PREFIX)' = x'${prefix}'
+ eval val=$PYTHON_EXEC_PREFIX
+ val=${exec_prefix}
+ echo ### PYTHON_EXEC_PREFIX ###
+ echo ${exec_prefix}
+ echo
+ echo ### PYTHON_EXEC_PREFIX ###
+ echo @PYTHON_EXEC_PREFIX@
+ echo
+ echo test x'$(PYTHON_EXEC_PREFIX)' = x'${exec_prefix}'
+ eval val=$pythondir
+ val=${prefix}/lib/python2.6/site-packages
+ echo ### pythondir ###
+ echo ${prefix}/lib/python2.6/site-packages
+ echo
+ echo ### pythondir ###
+ echo @pythondir@
+ echo
+ echo test x'$(pythondir)' = x'${prefix}/lib/python2.6/site-packages'
+ eval val=$pyexecdir
+ val=${exec_prefix}/lib/python2.6/site-packages
+ echo ### pyexecdir ###
+ echo ${exec_prefix}/lib/python2.6/site-packages
+ echo
+ echo ### pyexecdir ###
+ echo @pyexecdir@
+ echo
+ echo test x'$(pyexecdir)' = x'${exec_prefix}/lib/python2.6/site-packages'
+ eval val=$pkgpythondir
+ val=${pythondir}/python-vars
+ echo ### pkgpythondir ###
+ echo ${pythondir}/python-vars
+ echo
+ echo ### pkgpythondir ###
+ echo @pkgpythondir@
+ echo
+ echo test x'$(pkgpythondir)' = x'${pythondir}/python-vars'
+ eval val=$pkgpyexecdir
+ val=${pyexecdir}/python-vars
+ echo ### pkgpyexecdir ###
+ echo ${pyexecdir}/python-vars
+ echo
+ echo ### pkgpyexecdir ###
+ echo @pkgpyexecdir@
+ echo
+ echo test x'$(pkgpyexecdir)' = x'${pyexecdir}/python-vars'
+ cat Makefile.am
python_PYTHON = my.py
EXTRA_DIST = vars-exp
check-local: test-in test-am
.PHONY: test-in test-am
test-in:
cat $(srcdir)/vars-exp
cat $(builddir)/vars-got
diff $(srcdir)/vars-exp $(builddir)/vars-got
test-am:
test x'$(PYTHON_VERSION)' = x'2.6'
test x'$(PYTHON_PLATFORM)' = x'linux2'
test x'$(PYTHON_PREFIX)' = x'${prefix}'
test x'$(PYTHON_EXEC_PREFIX)' = x'${exec_prefix}'
test x'$(pythondir)' = x'${prefix}/lib/python2.6/site-packages'
test x'$(pyexecdir)' = x'${exec_prefix}/lib/python2.6/site-packages'
test x'$(pkgpythondir)' = x'${pythondir}/python-vars'
test x'$(pkgpyexecdir)' = x'${pyexecdir}/python-vars'
+ cat vars-got.in
### PYTHON_VERSION ###
@PYTHON_VERSION@
### PYTHON_PLATFORM ###
@PYTHON_PLATFORM@
### PYTHON_PREFIX ###
@PYTHON_PREFIX@
### PYTHON_EXEC_PREFIX ###
@PYTHON_EXEC_PREFIX@
### pythondir ###
@pythondir@
### pyexecdir ###
@pyexecdir@
### pkgpythondir ###
@pkgpythondir@
### pkgpyexecdir ###
@pkgpyexecdir@
+ aclocal-1.11a -Werror
+ automake-1.11a --foreign -Werror -Wall --add-missing
Makefile.am:2: installing `./py-compile'
+ grep ^PYTHON_VERSION *= Makefile.in
PYTHON_VERSION = @PYTHON_VERSION@
+ grep ^PYTHON_PLATFORM *= Makefile.in
PYTHON_PLATFORM = @PYTHON_PLATFORM@
+ grep ^PYTHON_PREFIX *= Makefile.in
PYTHON_PREFIX = @PYTHON_PREFIX@
+ grep ^PYTHON_EXEC_PREFIX *= Makefile.in
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
+ grep ^pythondir *= Makefile.in
pythondir = @pythondir@
+ grep ^pyexecdir *= Makefile.in
pyexecdir = @pyexecdir@
+ grep ^pkgpythondir *= Makefile.in
pkgpythondir = @pkgpythondir@
+ grep ^pkgpyexecdir *= Makefile.in
pkgpyexecdir = @pkgpyexecdir@
+ autoconf
+ ./configure PYTHON=python
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/dist-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.6/dist-packages
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating vars-got
+ make test-in test-am
cat ./vars-exp
### PYTHON_VERSION ###
2.6
### PYTHON_PLATFORM ###
linux2
### PYTHON_PREFIX ###
${prefix}
### PYTHON_EXEC_PREFIX ###
${exec_prefix}
### pythondir ###
${prefix}/lib/python2.6/site-packages
### pyexecdir ###
${exec_prefix}/lib/python2.6/site-packages
### pkgpythondir ###
${pythondir}/python-vars
### pkgpyexecdir ###
${pyexecdir}/python-vars
cat ./vars-got
### PYTHON_VERSION ###
2.6
### PYTHON_PLATFORM ###
linux2
### PYTHON_PREFIX ###
${prefix}
### PYTHON_EXEC_PREFIX ###
${exec_prefix}
### pythondir ###
${prefix}/lib/python2.6/dist-packages
### pyexecdir ###
${exec_prefix}/lib/python2.6/dist-packages
### pkgpythondir ###
${pythondir}/python-vars
### pkgpyexecdir ###
${pyexecdir}/python-vars
diff ./vars-exp ./vars-got
15c15
< ${prefix}/lib/python2.6/site-packages
---
> ${prefix}/lib/python2.6/dist-packages
18c18
< ${exec_prefix}/lib/python2.6/site-packages
---
> ${exec_prefix}/lib/python2.6/dist-packages
Makefile:536: recipe for target `test-in' failed
make: *** [test-in] Error 1
+ exit_status=2
+ set +e
+ cd /tmp/automake/build/tests
+ test 0 != 0
+ echo python-vars: exit 2
python-vars: exit 2
+ exit 2
- [PATCH] {maint} python: extend and improve tests, fix minor glitches, Stefano Lattarini, 2011/02/01
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches,
Ralf Wildenhues <=
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Stefano Lattarini, 2011/02/13
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Ralf Wildenhues, 2011/02/13
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Stefano Lattarini, 2011/02/13
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Ralf Wildenhues, 2011/02/13
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Stefano Lattarini, 2011/02/14
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Ralf Wildenhues, 2011/02/14
- Re: [PATCH] {maint} python: extend and improve tests, fix minor glitches, Stefano Lattarini, 2011/02/14