po: Update German man pages translation
[dpkg.git] / tests / t-unpack-divert-overwrite / Makefile
blob1ddfdab4f6a8fe50b9fd6340d2c0297b28267a83
1 TESTS_DEB := pkg-files pkg-divert pkg-replaces
3 include ../Test.mk
5 test-case:
6 # Test failure to install a package overwriting a diversion (order 1).
7 $(DPKG_INSTALL) pkg-divert.deb
8 test -e $(DPKG_INSTDIR)/test-file
9 ! test -e $(DPKG_INSTDIR)/test-other
10 $(DPKG_INSTALL) pkg-files.deb
11 test -e $(DPKG_INSTDIR)/test-file
12 test -e $(DPKG_INSTDIR)/test-other
13 ! $(DPKG_INSTALL) pkg-replaces.deb
14 test -e $(DPKG_INSTDIR)/test-file
15 test -e $(DPKG_INSTDIR)/test-other
16 $(call pkg_is_installed,pkg-divert)
17 $(call pkg_is_not_installed,pkg-replaces)
18 $(DPKG_PURGE) pkg-files
19 $(DPKG_PURGE) pkg-divert
20 $(DPKG_PURGE) pkg-replaces
21 ! test -e $(DPKG_INSTDIR)/test-file
22 ! test -e $(DPKG_INSTDIR)/test-other
24 # Test failure to install a package overwriting a diversion (order 2).
25 $(DPKG_INSTALL) pkg-files.deb
26 test -e $(DPKG_INSTDIR)/test-file
27 ! test -e $(DPKG_INSTDIR)/test-other
28 $(DPKG_INSTALL) pkg-divert.deb
29 test -e $(DPKG_INSTDIR)/test-file
30 test -e $(DPKG_INSTDIR)/test-other
31 ! $(DPKG_INSTALL) pkg-replaces.deb
32 test -e $(DPKG_INSTDIR)/test-file
33 test -e $(DPKG_INSTDIR)/test-other
34 $(call pkg_is_installed,pkg-divert)
35 $(call pkg_is_not_installed,pkg-replaces)
36 $(DPKG_PURGE) pkg-files
37 $(DPKG_PURGE) pkg-divert
38 $(DPKG_PURGE) pkg-replaces
39 ! test -e $(DPKG_INSTDIR)/test-file
40 ! test -e $(DPKG_INSTDIR)/test-other
42 # Test success to install a package overwriting a diversion (forced).
43 $(DPKG_INSTALL) pkg-files.deb
44 test -e $(DPKG_INSTDIR)/test-file
45 ! test -e $(DPKG_INSTDIR)/test-other
46 $(DPKG_INSTALL) pkg-divert.deb
47 test -e $(DPKG_INSTDIR)/test-file
48 test -e $(DPKG_INSTDIR)/test-other
49 $(DPKG_INSTALL) --force-overwrite-diverted pkg-replaces.deb
50 test -e $(DPKG_INSTDIR)/test-file
51 test -e $(DPKG_INSTDIR)/test-other
52 $(call pkg_is_installed,pkg-divert)
53 $(call pkg_is_installed,pkg-replaces)
54 $(DPKG_PURGE) pkg-replaces
55 $(DPKG_PURGE) pkg-divert
56 $(DPKG_PURGE) pkg-files
57 ! test -e $(DPKG_INSTDIR)/test-file
58 ! test -e $(DPKG_INSTDIR)/test-other
60 # XXX: In the force case, if we purge pkg-replaces last, then it
61 # will leave behind on the fsys an unowned file.
63 test-clean:
64 $(DPKG_PURGE) pkg-files pkg-divert pkg-replaces