From 851b6a097165af4d51c0db01b5e05256e5006896 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:00:48 +0200 Subject: Adding upstream version 2.6.1. Signed-off-by: Daniel Baumann --- test/integration/test-apt-patterns | 284 +++++++++++++++++++++++++++++++++++++ 1 file changed, 284 insertions(+) create mode 100755 test/integration/test-apt-patterns (limited to 'test/integration/test-apt-patterns') diff --git a/test/integration/test-apt-patterns b/test/integration/test-apt-patterns new file mode 100755 index 0000000..85370ae --- /dev/null +++ b/test/integration/test-apt-patterns @@ -0,0 +1,284 @@ +#!/bin/sh +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" + +setupenvironment +configarchitecture 'i386' 'amd64' + +insertpackage 'unstable' 'available' 'all' '1.0' 'Section: asection' + +insertinstalledpackage 'manual1' 'i386' '1.0' 'Depends: automatic1' +insertinstalledpackage 'manual2' 'i386' '1.0' + +insertinstalledpackage 'automatic1' 'i386' '1.0' 'Source: automatic (0)' +insertinstalledpackage 'automatic2' 'i386' '1.0' 'Source: automatic (1)' + +insertinstalledpackage 'essential' 'i386' '1.0' 'Essential: yes +Section: asection' +insertinstalledpackage 'required' 'i386' '1.0' 'Priority: required' +insertinstalledpackage 'conf-only' 'i386' '1.0' '' '' 'deinstall ok config-files' +insertinstalledpackage 'broken' 'i386' '1.0' 'Depends: does-not-exist' + +insertinstalledpackage 'not-obsolete' 'i386' '1.0' +insertpackage 'unstable' 'not-obsolete' 'all' '2.0' + +insertpackage 'unstable' 'foreign' 'amd64' '2.0' + +getoriginfromsuite() { echo -n 'meow'; } +setupaptarchive + +cat >> rootdir/var/lib/dpkg/status <