libdpkg: Refactor file_readlink() function
[dpkg.git] / tests / t-option-dry-run / Makefile
blobb534a4168a3e08e2bb9f2bda8aada45f5d56a8df
1 TESTS_DEB := pkg-normal
3 include ../Test.mk
5 test-case:
6 # Make sure the package is not there
7 $(DPKG_PURGE) pkg-normal
9 # Simulate unpacking a package
10 $(DPKG_UNPACK) --dry-run pkg-normal.deb
11 $(call pkg_is_not_installed,pkg-normal)
12 $(DPKG_INSTALL) --dry-run pkg-normal.deb
13 $(call pkg_is_not_installed,pkg-normal)
15 $(DPKG_UNPACK) pkg-normal.deb
17 # Simulate configuring a package
18 $(DPKG_CONFIGURE) --dry-run pkg-normal
19 $(call pkg_status_is,pkg-normal,install ok unpacked)
21 $(DPKG_CONFIGURE) pkg-normal
23 # Simulate removing and purging a package
24 $(DPKG_REMOVE) --dry-run pkg-normal
25 $(call pkg_is_installed,pkg-normal)
26 $(DPKG_PURGE) --dry-run pkg-normal
27 $(call pkg_is_installed,pkg-normal)
29 # XXX: Complete
31 test-clean:
32 $(DPKG_PURGE) pkg-normal