Gioele Barabucci:
Package: debhelper
Version: 13.8

t/Test/DH.pm contains a test runner as well as various utilities for the testing of debhelper steps.

It would be nice that file were included in the package and installed so that other debhelper addons could use it by simply Build-Depending on debhelper instead of having to copy it.

Regards

--
Gioele Barabucci


Hi,

I am open to patches on this front.

Note that Test::DH does two things at once in its current form:

 1) Provide various helpers that are generally useful for testing dh
    commands
 2) Help debhelper's own testsuite bootstrap itself and locate the
    self hosted debhelper.

And notably 2) is not helpful to others in its current form. They will need a different variant where they can specify how to find their debhelper tooling and combine that with the system debhelper. At least the `$ROOT_DIR` variable assumes debhelper's internal package layout. And others do not always put their scripts in the source root directory (instead stuff them into subdirectories).

For the template feature, we probably want to make at least `debian/compat` optional as (except debhelper itself) no one really uses `debian/compat` anymore - but Test::DH assumes it is always present.

The `run_dh_tool` function should probably be aligned more with `doit` (e.g. use `update_env` instead of `env` for changing environment), so it is easier for new people to get started with using it.

Additionally, the module would need some documentation, so people can figure out how to use it.

Thanks,
~Niels

Reply via email to