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=b3941d85e42d40867f5fa11cfa4bbfe5a3e585b7

commit b3941d85e42d40867f5fa11cfa4bbfe5a3e585b7
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Apr 12 15:41:36 2010 +0200

    New t-disappear-depended test-case
---
 Makefile                                             |  1 +
 t-disappear-depended/Makefile                        | 20 ++++++++++++++++++++
 .../pkg-depend}/DEBIAN/control                       |  5 +++--
 .../pkg-disappear}/DEBIAN/control                    |  0
 .../pkg-normal/DEBIAN/control                        |  0
 .../pkg-normal/test-dir/test-normal                  |  0
 6 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 7c49f9be0..39bff1184 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ TESTS := \
        t-normal \
        t-disappear \
        t-disappear-empty \
+       t-disappear-depended \
        t-conflict \
        t-conflict-provide-replace-real \
        t-conflict-provide-replace-virtual \
diff --git a/t-disappear-depended/Makefile b/t-disappear-depended/Makefile
new file mode 100644
index 000000000..7ee126d89
--- /dev/null
+++ b/t-disappear-depended/Makefile
@@ -0,0 +1,20 @@
+TESTS_DEB := pkg-normal pkg-depend pkg-disappear
+
+include ../Test.mk
+
+test-case:
+       # test disappearing depended package
+       $(DPKG_INSTALL) pkg-disappear.deb
+       $(DPKG_INSTALL) pkg-depend.deb
+       $(DPKG_INSTALL) pkg-normal.deb
+       # should not disappear while it's being depended on
+       test "`$(PKG_STATUS) pkg-disappear`" = "install ok installed"
+       $(DPKG_PURGE) pkg-depend
+       $(DPKG_INSTALL) pkg-normal.deb
+       # should have been disappered now
+       test "`$(PKG_STATUS) pkg-disappear`" = "unknown ok not-installed"
+
+test-clean:
+       -$(DPKG_PURGE) pkg-disappear
+       $(DPKG_PURGE) pkg-normal
+
diff --git a/t-disappear-empty/pkg-disappear-0/DEBIAN/control 
b/t-disappear-depended/pkg-depend/DEBIAN/control
similarity index 52%
copy from t-disappear-empty/pkg-disappear-0/DEBIAN/control
copy to t-disappear-depended/pkg-depend/DEBIAN/control
index d8b9b28cb..2919c01ab 100644
--- a/t-disappear-empty/pkg-disappear-0/DEBIAN/control
+++ b/t-disappear-depended/pkg-depend/DEBIAN/control
@@ -1,8 +1,9 @@
-Package: pkg-disappear
+Package: pkg-depend
 Version: 0.0-1
 Section: test
 Priority: extra
 Maintainer: Guillem Jover <[email protected]>
 Architecture: all
-Description: test package - disappear
+Depends: pkg-disappear
+Description: test package - depend on disappearing package
 
diff --git a/t-disappear-empty/pkg-disappear-0/DEBIAN/control 
b/t-disappear-depended/pkg-disappear/DEBIAN/control
similarity index 100%
copy from t-disappear-empty/pkg-disappear-0/DEBIAN/control
copy to t-disappear-depended/pkg-disappear/DEBIAN/control
diff --git a/t-disappear/pkg-normal/DEBIAN/control 
b/t-disappear-depended/pkg-normal/DEBIAN/control
similarity index 100%
copy from t-disappear/pkg-normal/DEBIAN/control
copy to t-disappear-depended/pkg-normal/DEBIAN/control
diff --git a/t-disappear-empty/pkg-normal/test-dir/test-normal 
b/t-disappear-depended/pkg-normal/test-dir/test-normal
similarity index 100%
copy from t-disappear-empty/pkg-normal/test-dir/test-normal
copy to t-disappear-depended/pkg-normal/test-dir/test-normal

-- 
Dpkg.Org's dpkg

Reply via email to