Re: RFS: cgview
On Sat, May 09, 2020 at 09:54:56PM +0530, Pranav Ballaney wrote:
> I've added autopkgtests to cgview. Since the output is an image, I haven't
> compared it to a reference - is that alright?
Its definitely better than nothing.
> If not, how do we usually test packages like this? I tried running a diff
> but that reported the files to be different, even though they were visually
> the same.
I somehow thought there are some image comparison packages inside Debian.
A short search has lead me to
identify -quiet -format "%#" images...
> Please take a look and let me know if any additional steps are required.
Please note that I used xz compression on the xml data to save some
space also on developers machines. I've also called routine-update -f
to update the packaging. I do not think that the image comparison is
mandatory here - its way better to test at all than to make it perfect.
But if you want to give identify a try that would be fine.
However, we have a remaining problem in my pbuilder chroot:
autopkgtest [19:32:42]: test run-unit-test: [-----------------------
run-detectors: unable to find an interpreter for /usr/bin/cgview
autopkgtest [19:32:43]: test run-unit-test: -----------------------]
autopkgtest [19:32:43]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - -
run-unit-test FAIL non-zero exit status 2
It somehow sounds similar to this thread:
I'd recommend to check with email@example.com . In
the case of artfastqgenerator I've circumvented the problem
a wrapper script.
Hope this helps
- RFS: cgview
- From: Pranav Ballaney <firstname.lastname@example.org>