]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-835094-configure-before-purge
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 buildsimplenativepackage 'kernel' 'amd64' '1' 'unstable' 'Depends: initramfs-tools | linux-initramfs-tool'
11 #buildsimplenativepackage 'initramfs-tools' 'amd64' '1.0.16' 'unstable' 'Provides: linux-initramfs-tool'
12 setupsimplenativepackage 'initramfs-tools' 'amd64' '1' 'unstable' 'Provides: linux-initramfs-tool'
13 BUILDDIR='incoming/initramfs-tools-1'
14 mkdir -p "${BUILDDIR}/debian
/initramfs
-tools/etc
"
15 echo 'foo2=bar2;' > "${BUILDDIR}/init.conf
"
16 echo 'init.conf /etc/init.conf' >> "${BUILDDIR}/debian
/install"
17 buildpackage "$BUILDDIR" 'unstable' 'main' 'native'
20 buildsimplenativepackage 'dracut' 'amd64' '1' 'unstable' 'Provides: linux-initramfs-tool
21 Conflicts: initramfs-tools'
25 testdpkgnotinstalled 'kernel' 'initramfs-tools' 'dracut'
26 testsuccess apt install kernel -y
27 testdpkginstalled 'kernel' 'initramfs-tools'
28 testsuccess test -s rootdir/etc/init.conf
29 testsuccessequal 'Reading package lists...
30 Building dependency tree...
31 Reading state information...
32 The following packages will be REMOVED:
34 The following NEW packages will be installed:
36 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
37 Purg initramfs-tools [1] [kernel:amd64 ]
38 Inst dracut (1 unstable [amd64])
39 Conf dracut (1 unstable [amd64])' apt install --purge dracut -s
40 testsuccess apt install --purge dracut -y -o Debug::pkgDpkgPm=1 -o Dpkg::Use-Pty=0
41 testsuccess apt install --purge dracut -y
42 testdpkginstalled 'kernel' 'dracut'
43 testdpkgnotinstalled 'initramfs-tools'
44 testsuccess test ! -s rootdir/etc/init.conf