diff --git a/tests/t1/Makefile b/tests/t1/Makefile index 13649410cc56608a57492665d562f67344cc441f..f3e1403d88e959253945dc55226c642ce1f2e90d 100644 --- a/tests/t1/Makefile +++ b/tests/t1/Makefile @@ -2,6 +2,7 @@ all: run check +DPY=$(shell PYTHONPATH=../../ python -c 'import debpython.version as v; print(v.vrepr(v.DEFAULT))') run: clean dpkg-buildpackage -b -us -uc @@ -11,6 +12,8 @@ check: test -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/__init__.py test ! -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/spam.py grep -q "Depends: .*python (<<" debian/python-foo/DEBIAN/control + [ `readlink debian/python-foo/usr/lib/python$(DPY)/dist-packages/foo/absolute_link_to_tmp` = /tmp ] + [ `readlink debian/python-foo/usr/lib/python$(DPY)/dist-packages/foo/link_to_parent_dir` = .. ] clean: ./debian/rules clean diff --git a/tests/t1/debian/rules b/tests/t1/debian/rules index c8aea4a4cc3957aa06a19eeb58546d84a50c7de3..93728703d0e424cfddf29291a93bc7955c2cb55b 100755 --- a/tests/t1/debian/rules +++ b/tests/t1/debian/rules @@ -5,6 +5,10 @@ override_dh_pysupport: find debian/ -name jquery.js -exec \ ln -fs /usr/share/javascript/jquery/jquery.js '{}' \; + find debian/ -name foo -type d -exec \ + ln -s /tmp/ '{}/absolute_link_to_tmp' \; + find debian/ -name foo -type d -exec \ + ln -s .. '{}/link_to_parent_dir' \; DH_VERBOSE=1 ../../dh_python2\ --depends 'SQLAlchemy >= 0.6.1'\ --recommends Mako\