test: Unset DEB_BUILD_MAINT_OPTIONS in build flags tests
[dpkg.git] / tests / t-conffile-root-option / Makefile
blobbd98cc76d509cafe9d7270784042fb338d96ba98
1 TESTS_DEB := pkg-conff-a-1 pkg-conff-a-2 pkg-conff-b-1 pkg-conff-b-2
3 include ../Test.mk
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
15 # Cleanup.
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
33 # Cleanup.
34 -$(DPKG_PURGE) pkg-conff-b
35 -$(DPKG_PURGE) pkg-conff-a
37 test-clean:
38 -$(DPKG_PURGE) pkg-conff-a pkg-conff-b
39 -$(BEROOT) rm -rf $(TEST_ROOT)