This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b6961deee1c968084a0d38b8babd50de284e7b4b

commit b6961deee1c968084a0d38b8babd50de284e7b4b
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Feb 4 06:41:40 2011 +0100

    New t-dry-run test case
---
 Makefile                                           |  1 +
 t-dry-run/Makefile                                 | 26 ++++++++++++++++++++++
 .../pkg-normal/DEBIAN/control                      |  0
 3 files changed, 27 insertions(+)

diff --git a/Makefile b/Makefile
index 54e0ce0f5..39711ca65 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ TESTS_FAIL := \
 
 TESTS_PASS := \
        t-normal \
+       t-dry-run \
        t-control-bogus \
        t-control-no-arch \
        t-unpack-symlink \
diff --git a/t-dry-run/Makefile b/t-dry-run/Makefile
new file mode 100644
index 000000000..cef60b6e0
--- /dev/null
+++ b/t-dry-run/Makefile
@@ -0,0 +1,26 @@
+TESTS_DEB := pkg-normal
+
+include ../Test.mk
+
+test-case:
+       # Simulate unpacking a package
+       #$(DPKG_UNPACK) --dry-run pkg-normal.deb
+       #$(call pkg_is_not_installed pkg-normal)
+       #$(DPKG_INSTALL) --dry-run pkg-normal.deb
+       #$(call pkg_is_not_installed pkg-normal)
+       
+       $(DPKG_UNPACK) pkg-normal.deb
+       
+       # Simulate configuring a package
+       $(DPKG_CONFIGURE) --dry-run pkg-normal
+       test "`$(PKG_STATUS) pkg-normal`" = "install ok unpacked"
+       
+       $(DPKG_CONFIGURE) pkg-normal
+       
+       # Simulate removing and purging a package
+       $(DPKG_REMOVE) --dry-run pkg-normal
+       $(call pkg_is_installed pkg-normal)
+       $(DPKG_PURGE) --dry-run pkg-normal
+       $(call pkg_is_installed pkg-normal)
+       
+       # XXX: Complete
diff --git a/t-disappear-depended/pkg-normal/DEBIAN/control 
b/t-dry-run/pkg-normal/DEBIAN/control
similarity index 100%
copy from t-disappear-depended/pkg-normal/DEBIAN/control
copy to t-dry-run/pkg-normal/DEBIAN/control

-- 
Dpkg.Org's dpkg

Reply via email to