Comment 45 for bug 2003259

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

@cups-browsed

First off, cups-browsed got promoted off-MIR by @vorlon, as it is a spin-off of the former cups-filters 1.x which was in Main and the code base is merly the same.

Second, cups-browsed as we use it in Ubuntu does nothing at all if there is no avahi-daemon, it will even immediately exit as it has nothing to do.

I would need to add a "testing mode" to the upstream code of cups-browsed which fakes DNS-SD broadcasts, but this is very invasive and the risk of bugs to get introduced by that is higher than the probablility to discover bugs in the rest of cups-browsed's functionality.

Another solution would be to use the legacy CUPS browsing support, but with this I would test a functionality which is completely irrelevant to Ubuntu (it is there to interact with VERY old Red Hat Enterprise versions). Also I would need a counterpart, meaning that I had to re-implement legacy CUPS browsing in an external test program ...

Third, the security team has no problem with the missing build test as we have the autopkgtest which is testing cups-browsed very well:

> - unit tests / autopkgtests?
> - Tests are defined in the script cups-browsed-2.0~b4/test/run-tests.sh,
> that seems to do a good job in creating the test setup. it gives the
> chance to make different types of tests. This is the script that runs in
> the autopkgtests.
> - cron jobs?
> - NA
> - Build logs:
> - build log is clean, there is an information about the tests being
> executed in the autopkgtest and not during the build, due to the
> need of avahi-daemon in the build chroot.