libdpkg: Add comment clarifying GNU long name format expectations
[dpkg.git] / tests / t-conffile-replaces-downgrade / Makefile
blobdf08bd6780e52ba7c84d49e1d1bef95fb7a94edc
1 TESTS_DEB := pkg-conff-original-0 pkg-conff-original-1 pkg-conff-takeover
3 include ../Test.mk
5 define VERIFY
6 $(call pkg_is_installed,pkg-conff-original)
7 $(call pkg_is_installed,pkg-conff-takeover)
8 test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile"
9 cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile"
10 endef
12 test-case:
13 # Install packages
14 $(DPKG_INSTALL) pkg-conff-original-1.deb
15 $(DPKG_INSTALL) pkg-conff-takeover.deb
16 # Downgrade to test versioned Replaces
17 $(DPKG_INSTALL) pkg-conff-original-0.deb
18 $(VERIFY)
19 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover