1 TESTS_DEB
:= pkg-conff-a-1 pkg-conff-a-2 pkg-conff-b-1 pkg-conff-b-2
5 TEST_CASES
+= test-conffile-move-packages-no-rootdir
6 TEST_CASES
+= test-conffile-move-packages-rootdir
8 test-case
: $(TEST_CASES
)
10 test-conffile-move-packages-no-rootdir
:
11 # Install base versions.
12 $(DPKG_INSTALL
) pkg-conff-a-1.deb pkg-conff-b-1.deb
13 # Install update, conffile moves from a to b.
14 $(DPKG_INSTALL
) pkg-conff-a-2.deb pkg-conff-b-2.deb
16 -$(DPKG_PURGE
) pkg-conff-b
17 -$(DPKG_PURGE
) pkg-conff-a
19 TEST_ROOT
:= $(CURDIR
)/target
21 test-conffile-move-packages-rootdir
: override DPKG_ADMINDIR
= $(TEST_ROOT
)/var
/lib
/dpkg
22 test-conffile-move-packages-rootdir
: override DPKG_INSTDIR
= $(TEST_ROOT
)
23 test-conffile-move-packages-rootdir
:
24 # Create template root dir.
25 mkdir
-p
$(DPKG_ADMINDIR
)/info
26 mkdir
-p
$(DPKG_ADMINDIR
)/updates
27 mkdir
-p
$(DPKG_ADMINDIR
)/triggers
28 touch
$(DPKG_ADMINDIR
)/status
29 # Install base versions.
30 $(DPKG_INSTALL
) pkg-conff-a-1.deb pkg-conff-b-1.deb
31 # Install update, conffile moves from a to b.
32 $(DPKG_INSTALL
) pkg-conff-a-2.deb pkg-conff-b-2.deb
34 -$(DPKG_PURGE
) pkg-conff-b
35 -$(DPKG_PURGE
) pkg-conff-a
38 -$(DPKG_PURGE
) pkg-conff-a pkg-conff-b
39 -$(BEROOT
) rm -rf
$(TEST_ROOT
)