test: Add an integration test for debi
This detects some of the regressions since 2.19.5. It has to be run as root, preferably in an expendable testbed, because it actually installs packages: as a result it's wired up to autopkgtest but not listed in test/Makefile.
Some of these regressions are real problems, and some of them are arguably doing the right thing... for the purposes of the test I've assumed that 2.19.5 (before the rewrite to use apt install ./foo.changes) was correct.
I think it will be necessary to work out what should happen before we can fix what does happen.
Edited by Simon McVittie