* Axel Beckert <[email protected]>, 2014-03-31, 02:34:
it would be nice, if the adequate package would ship examples for how
to use adequate with autopkgtest.
My suggestions:
Example debian/tests/adequate:
---8<---
#!/bin/sh
adequate `dh_listpackages` >&2
--->8---
(Not sure if adding any "set -e" or "exec" would be a useful addition.
Feel free to add stuff where you think it's helpful.)
"set -e" doesn't buy you anything, since there's only one command.
"exec" saves you a fork, so it's a good idea.
I'd rather not depend on debhelper; it's better to keep your Depends
minimal. Here's a one-liner to re-implement dh_listpackages using only
essential packages:
LC_ALL=C sed -n -r 's/^package:\s+(.+)/\1/ip' debian/control
The only gotcha is that the above code doesn't take Architecture fields
into account. (I wonder if autopkgtest does when expanding "@". The
specification is not clear whether it should or not.)
But I don't like the "@" thing anyway, and would prefer separate tests
for each binary package. I think I'll write a script to add such tests
automatically.
I'd also add a note somewhere that adequate probably does not suffice
as the only test in a package's autopkgtest suite, but that it serves
well as additional test.
Agreed.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]