[Piuparts-devel] Bug#595119: piuparts: modular way to add new tests?

Timo Juhani Lindfors timo.lindfors at iki.fi
Wed Sep 1 07:18:14 UTC 2010


Package: piuparts
Version: 0.38
Severity: wishlist

When I was writing lintian tests for a chapter in debian emacs policy
I realized that some important parts can not be tested with
lintian. For example:

    If a package _and_ emacs are installed and
    /usr/share/<flavour>/site-lisp/<pkg>/<module>.elc exists then
    there must exists a
    /usr/share/<flavour>/site-lisp/<pkg>/<module>.el which must be a
    relative symlink to ../../../emacs/site-lisp/<pkg>/<module>.el

I tried to modify piuparts to do this test but faced challenges:

1) There's no modular way to register new tests. I was forced to
insert calls to my test from the code. Ideally there should be some
more declarative way to specify what tests to run.

2) This test requires that emacs is installed sine otherwise emacs add
ons won't do byte compilation on installation. However, it is very
important that piuparts is also testing that the package in question
can be installed if emacs is not installed.

The patch for this test is attached but it is definitely not ready to
be included. Maybe tests like these should belong to some completely
new tool?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: piuparts_emacsen_symlinks1.patch
Type: text/x-diff
Size: 4920 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20100901/69de64ba/attachment.patch>
-------------- next part --------------


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages piuparts depends on:
ii  apt                        0.8.0         Advanced front-end for dpkg
ii  debootstrap                1.0.23        Bootstrap a basic Debian system
ii  lsb-release                3.2-23.1      Linux Standard Base version report
ii  lsof                       4.81.dfsg.1-1 List open files
ii  python                     2.6.5-13      interactive high-level object-orie
ii  python-debian              0.1.18        Python modules to work with Debian

piuparts recommends no packages.

Versions of packages piuparts suggests:
ii  ghostscript                 8.71~dfsg2-6 The GPL Ghostscript PostScript/PDF
pn  python-rpy                  <none>       (no description available)

-- no debconf information


More information about the Piuparts-devel mailing list