]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | set -e | |
3 | ||
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" | |
5 | . "$TESTDIR/framework" | |
6 | setupenvironment | |
7 | configarchitecture 'amd64' | |
8 | ||
9 | buildsimplenativepackage 'kernel' 'amd64' '1' 'unstable' 'Depends: initramfs-tools | linux-initramfs-tool' | |
10 | ||
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' | |
18 | rm -rf "$BUILDDIR" | |
19 | ||
20 | buildsimplenativepackage 'dracut' 'amd64' '1' 'unstable' 'Provides: linux-initramfs-tool | |
21 | Conflicts: initramfs-tools' | |
22 | ||
23 | setupaptarchive | |
24 | ||
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: | |
33 | initramfs-tools* | |
34 | The following NEW packages will be installed: | |
35 | dracut | |
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 |