Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #8194

Test suite needs script built after dh_auto_test is run

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Sean Whitton <spwhitton@spwhitton.name>
Newsgroups linux.debian.maint.python, linux.debian.devel.mentors
Subject Test suite needs script built after dh_auto_test is run
Date Fri, 05 Feb 2016 05:10:03 +0100
Message-ID <qYFSz-3zj-19@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Feb 5 04:09:02 2016
Old-Return-Path <spwhitton@spwhitton.name>
X-Amavis-Spam-Status No, score=-12.72 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=unavailable autolearn_force=no
X-Policyd-Weight DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .spwhitton. - helo: .out1-smtp.messagingengine. - helo-domain: .messagingengine.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
Dkim-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=spwhitton.name; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=iBSkSBO5MOttBxvNPJqyKxARXRo =; b=TF6UYq2VCeoVfKEIYmOZ3071TEPgTG7cPojw3xvhW+ZBNaQ6/EH+5hL9H05 Z9UxQWTTlBb5dEy3XcW5WXxZpx3oGoMZEJm5yGJskB8P/YCwWUjGo6wesKqJUkDP 2z6xdiK89RnjlwVsYELS2mbYaT/zums9e0L92mOAk7bVscTE=
Dkim-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=iB SkSBO5MOttBxvNPJqyKxARXRo=; b=T0K2HZsd2dtR+jrfxnXBK3QeyjhZEo5+1N FSp9Ab0Wj/sgXYTkSJWzWlZqvxcA08JmrJPnkeMaa1SV24p76qEh0qEb0WGBoA1/ ZwAYGZmlpD+vf4f4wzCTro4ixHsEqKdAfnpOt0jFZs6ZRD9qqHEHa9JpI6iw8QAn kUD3ePx7E=
X-Sasl-Enc KGMSIj9F0q62BntKXaQiyc+24cIfwUrSgYEVdp4kkJTZ 1454645324
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/13519
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20160205040842.GA27579@artemis.silentflame.com
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 4 Feb 2016 21:08:42 -0700
X-Original-Message-ID <20160205040842.GA27579@artemis.silentflame.com>
Xref csiph.com linux.debian.maint.python:8194 linux.debian.devel.mentors:35202

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello,

I'm packaging a Python application, ocrmypdf [1], that has a test suite
run by py.test.  Most of the tests fail because they try to call the
/usr/bin/ocrmypdf script.  This script doesn't exist until after
debhelper has run setup.py, which generates it using its "entry points
script" feature.  And this comes after dh_auto_test.

The only solution I've come up with is producing my own entry point
script and putting it into $PATH for the test suite to use.  But that
rather defeats the purpose of testing the actual package's contents.

What would be the most elegant way to handle this?  Can anyone point me
to a package that had a similar issue with the test suite needing a file
not yet generated?

Thanks.

[1] https://github.com/jbarlow83/OCRmyPDF

-- 
Sean Whitton

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Test suite needs script built after dh_auto_test is run Sean Whitton <spwhitton@spwhitton.name> - 2016-02-05 05:10 +0100
  Re: Test suite needs script built after dh_auto_test is run Barry Warsaw <barry@python.org> - 2016-02-05 20:20 +0100
    Re: Test suite needs script built after dh_auto_test is run Sean Whitton <spwhitton@spwhitton.name> - 2016-02-07 00:20 +0100

csiph-web