1 TESTS_DEB
:= pkg-normal pkg-divert pkg-disappear
6 # Test not disappearing diverted package.
7 $(DPKG_INSTALL
) pkg-disappear.deb
8 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
9 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
10 $(DPKG_INSTALL
) pkg-divert.deb
11 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
12 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
13 # Should not disappear while it's being diverted.
14 $(call pkg_is_installed
,pkg-disappear
)
15 $(DPKG_PURGE
) pkg-divert
16 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
17 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
18 $(DPKG_PURGE
) pkg-disappear
20 # Test disappearing package not being diverted.
21 $(DPKG_INSTALL
) pkg-disappear.deb
22 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
23 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
24 $(DPKG_INSTALL
) pkg-normal.deb
25 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
26 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
27 # Should have been disappered now.
28 $(call pkg_is_not_installed
,pkg-disappear
)
29 $(DPKG_PURGE
) pkg-normal
30 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
31 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
32 $(DPKG_PURGE
) pkg-disappear
34 # Test disappearing package diverted but replaced by a 3rd package.
35 $(DPKG_INSTALL
) pkg-disappear.deb
36 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
37 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
38 $(DPKG_INSTALL
) pkg-divert.deb
39 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
40 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
41 $(DPKG_INSTALL
) pkg-normal.deb
42 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
43 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
44 # Should have been disappered now, as it is diverted by a 3rd package.
45 $(call pkg_is_not_installed
,pkg-disappear
)
46 $(DPKG_PURGE
) pkg-normal
47 test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
48 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
49 $(DPKG_PURGE
) pkg-divert
50 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal
51 ! test -e
$(DPKG_INSTDIR
)/test-dir
/test-normal.distrib
52 $(DPKG_PURGE
) pkg-disappear
55 $(DPKG_PURGE
) pkg-divert
56 $(DPKG_PURGE
) pkg-disappear
57 $(DPKG_PURGE
) pkg-normal