[Piuparts-devel] Bug#595119: piuparts: modular way to add new tests?
Scott Schaefer
saschaefer at neurodiverse.org
Thu May 26 21:55:50 UTC 2011
From reading your report and your patch, I believe you can achieve this
with the "custom scripting" interface
(/usr/share/doc/piuparts/README.html or
http://piuparts.debian.org/doc/README.html#_custom_scripts_with_piuparts).
While perhaps not ideal, this interface provides a 'modular way to add
new tests'.
In order to verify I am understanding ...
You seemingly need a way to determine if <pattern> is anywhere in the
"list of" Depends:; thus, your patch causes this to be built even in
absence of --warn-on-others. You then want to be able to test (ideally,
via regexp ?) for presence of >=1 patterns in this set, and
conditionally run your additional test(s) based on presence/absence of
these patterns.
While I have not attempted to produce set of shell scripts that provides
this functionality, I believe there is no fundamental constraint in the
interface that would preclude doing so. Am I misunderstanding; i.e. is
there some way the current interface does fails to address your needs ?
Finally, note your patch appears to unconditionally install and purge
emacs if you run the test; this is likely not correct, since emacs may
have either already been installed (dist-upgrade), or been installed by
install_packages, so that this may then lead to subsequent error(s)
during purge.
More information about the Piuparts-devel
mailing list