21 Commits

Author SHA1 Message Date
Julian Andres Klode f15178f139 tests: Add g++ dependency to pkg-config test 2022-05-17 18:50:09 +02:00
David Kalnischkies a48a432223 Mark pkg-config-test autopkgtest as superficial
Reorganising the control file allows this simple test to run first and
be marked as superficial which makes no practical difference, but is
more correct.
2022-05-07 10:45:44 +02:00
David Kalnischkies 255ec5a46a Try to show core dump info in test framework
If the system tells us that a core dump was created we should try to
display the contained info as that system might not be easily available
when we see the error (like C-I or autopkgtest).

Gbp-Dch: Ignore
2021-08-28 21:11:33 +02:00
Julian Andres Klode 30f47dc8d6 Require dpkg >= 1.20.8
We use a Breaks for the binary package instead of adding
a versioned depends, as Breaks will cause apt solver to upgrade dpkg,
while depends would make apt try to remove apt as first choice.
2021-04-21 11:49:50 +02:00
Julian Andres Klode 56820d4c24 test: Use valgrind to ensure Acquire::Queue-Mode=access does not crash
Unfortunately for us, apt update with Acquire::Queue-Mode=access
does not always crash on a real system, so run the whole thing
in valgrind.
2019-08-15 09:53:41 +02:00
Corentin Noël 7c461f0396 Add pkg-config files for the apt-pkg and apt-inst libraries
Closes: #439121
2019-03-08 19:13:06 +01:00
David Kalnischkies 13c85c9cec tests: install aptitude for test-method-mirror
This is an optional dependency for the test, but the skipping of the
test is very noisy and checking that an unchanged aptitude isn't
downright exploding with our libapt isn't a bad idea either.

Gbp-Dch: Ignore
2018-02-19 15:57:43 +01:00
Julian Andres Klode b1989ab988 debian/tests/control: Add dpkg so we get triggered by it
We do want to get our autopkgtests triggered by dpkg uploads
in Ubuntu, but this does not happen because we don't have
an explicit dependency on it. Add one.
2017-10-26 13:21:23 +02:00
Julian Andres Klode 6fbe573970 tests/control: Handle the gpg1/gpg2 mess a bit better
Hardcoding gpgv1 and gnupg1 breaks Ubuntu, because on Ubuntu,
these packages do not exist yet. Instead allow gnupg (<< 2)
for gnupg1 and gnupg2 for gnupg (>= 2), so we cover all
potential combinations.
2016-08-19 16:50:23 +02:00
David Kalnischkies 19fdf93d73 add the gpg-classic variant to the gpgv/gnupg or-group
We need to support partial upgrades anyhow, so we have to deal with the
different versions and your tests try to ensure that we do, so we
shouldn't make any explicit higher requirements.
2016-08-17 09:52:32 +02:00
Michael Vogt 0390edd545 Fix bug where the problemresolve can put a pkg into a heisenstate
The problemresolver will set the candidate version for pkg P back
to the current version if it encounters an impossible to satisfy
critical dependency on P. However it did not set the State of
the package back as well which lead to a situation where P is
neither in Keep,Install,Upgrade,Delete state.

Note that this can not be tested via the traditional sh based
framework. I added a python-apt based test for this.

LP: #1550741

[jak@debian.org: Make the test not fail if apt_pkg cannot be
 imported]
2016-03-15 18:55:02 +01:00
Julian Andres Klode 369ddff642 tests: Depend on libfile-fcntllock-perl to shut up dpkg-gencontrol
Ubuntu's autopkgtest server always prints

  dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe

which is somewhat annoying. Work around that by depending on that
perl stuff for the test suite.

Gbp-Dch: ignore
2015-12-14 10:00:32 +01:00
David Kalnischkies 6c0765c096 tests: don't use hardcoded port for http and https
This allows running tests in parallel.

Git-Dch: Ignore
2015-09-15 10:16:09 +02:00
David Kalnischkies 98f0d7b3d9 add gnupg and gnupg2 as test-dependency
apt can work with both, so it has an or-dependency on them,
but the tests want to play with both of them.

Git-Dch: Ignore
2014-09-27 00:12:15 +02:00
Michael Vogt 7ff5ce11ec Use @builddeps@ in the debian/tests/control file 2014-07-17 09:59:01 +02:00
Guillem Jover a034d8528b build: Convert from DebianDoc SGML to DocBook XML 2014-07-08 13:14:22 +02:00
Michael Vogt 686b484b40 fix autopkgtest tests 2014-06-11 14:50:48 +02:00
Martin Pitt fc104da6a5 Bug#739988: Fix autopkgtest missing dependencies and locale
debian/tests/control: Add missing build-essential, fakeroot, and wget test
dependencies.

debian/tests/run-tests: Pin locale to C to avoid test failures in other
locales.
2014-02-25 08:18:25 +01:00
Michael Vogt c3d0a74a58 add missing libdb-dev to debian/tests/control 2014-02-22 23:53:54 +01:00
Michael Vogt 28b4b983d9 use "Restrictions: allow-stderr and avoid apt-stderr.log in debian/tests/run-tests 2014-02-13 14:22:24 +01:00
Michael Vogt fdef7c5e3a add autopkgtest 2013-11-29 07:42:12 +01:00