[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Idea: autopkgtest on big-endian for 'Architecture: all' packages to catch endian bugs



Le mardi, 2 août 2022, 18.00:40 h CEST Edward Betts a écrit :
> I recently packaged a Python module called sqlite-fts4 written by Simon
> Willison. The package is pure Python, so is 'Architecture: all', but it
> fails on big-endian architectures. The test suite catches this failure.
> 
> The bug was spotted by OpenSUSE because they tried to run the test suite on
> s390x. They filed a bug which upstream has fixed.
> 
> https://github.com/simonw/sqlite-fts4/issues/6
> 
> Simon has written some posts about this problem.
> 
> https://til.simonwillison.net/python/struct-endianness
> https://til.simonwillison.net/docker/emulate-s390x-with-qemu
> 
> It would be nice if the Debian infrastructure could catch this class of bug.
> 
> Building the sqlite-fts4 Debian package runs the test suite, and I've
> configured it to run the tests via autopkgtest.

If these tests are run at build-time, errors halt the build and that provides 
the largest coverage. It's also usually easier to iterate and test than 
autopkgtest.

-- 
    OdyX

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: