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=47176671eb59eee2bf75ff4931f7e9596c1af343

commit 47176671eb59eee2bf75ff4931f7e9596c1af343
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Sep 20 10:42:01 2018 +0200

    t-verify: Add new test case
---
 Test.mk                                              |  1 +
 t-verify/Makefile                                    | 13 +++++++++++++
 .../pkg-a => t-verify/pkg-verify}/DEBIAN/control     |  4 ++--
 t-verify/pkg-verify/test-dir/test-data               |  1 +
 t-verify/pkg-verify/test-dir/test-digits             | 20 ++++++++++++++++++++
 t-verify/pkg-verify/test-file                        |  1 +
 6 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/Test.mk b/Test.mk
index 66d3e3b35..92458dc2f 100644
--- a/Test.mk
+++ b/Test.mk
@@ -71,6 +71,7 @@ DPKG_UNPACK = $(BEROOT) $(DPKG) --unpack
 DPKG_CONFIGURE = $(BEROOT) $(DPKG) --configure
 DPKG_REMOVE = $(BEROOT) $(DPKG) -r
 DPKG_PURGE = $(BEROOT) $(DPKG) -P
+DPKG_VERIFY = $(DPKG) -V
 DPKG_DEB = dpkg-deb $(DPKG_DEB_OPTIONS)
 DPKG_DIVERT = dpkg-divert $(DPKG_COMMON_OPTIONS) $(DPKG_DIVERT_OPTIONS)
 DPKG_DIVERT_ADD = $(BEROOT) $(DPKG_DIVERT) --add
diff --git a/t-verify/Makefile b/t-verify/Makefile
new file mode 100644
index 000000000..2763e8475
--- /dev/null
+++ b/t-verify/Makefile
@@ -0,0 +1,13 @@
+TESTS_DEB := pkg-verify
+
+include ../Test.mk
+
+test-case:
+       $(DPKG_INSTALL) pkg-verify.deb
+       $(call pkg_is_installed,pkg-verify)
+       $(call stdout_is,$(DPKG_VERIFY) pkg-verify,)
+       $(BEROOT) sh -c "echo 'MODIFIED' >>'$(DPKG_INSTDIR)/test-dir/test-data'"
+       $(call stdout_has,$(DPKG_VERIFY) pkg-verify,^\?\?5\?\?\?\?\?\?   
/test-dir/test-data$)
+
+test-clean:
+       $(DPKG_PURGE) pkg-verify
diff --git a/t-option-recursive/dir-a/pkg-a/DEBIAN/control 
b/t-verify/pkg-verify/DEBIAN/control
similarity index 68%
copy from t-option-recursive/dir-a/pkg-a/DEBIAN/control
copy to t-verify/pkg-verify/DEBIAN/control
index af9ae1a2f..5d383a269 100644
--- a/t-option-recursive/dir-a/pkg-a/DEBIAN/control
+++ b/t-verify/pkg-verify/DEBIAN/control
@@ -1,7 +1,7 @@
-Package: pkg-a
+Package: pkg-verify
 Version: 0.0-1
 Section: test
 Priority: extra
 Maintainer: Dpkg Developers <[email protected]>
 Architecture: all
-Description: test package - normal
+Description: test package - verify
diff --git a/t-verify/pkg-verify/test-dir/test-data 
b/t-verify/pkg-verify/test-dir/test-data
new file mode 100644
index 000000000..f2f6d87d5
--- /dev/null
+++ b/t-verify/pkg-verify/test-dir/test-data
@@ -0,0 +1 @@
+some other data
diff --git a/t-verify/pkg-verify/test-dir/test-digits 
b/t-verify/pkg-verify/test-dir/test-digits
new file mode 100644
index 000000000..0ff3bbb9c
--- /dev/null
+++ b/t-verify/pkg-verify/test-dir/test-digits
@@ -0,0 +1,20 @@
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
diff --git a/t-verify/pkg-verify/test-file b/t-verify/pkg-verify/test-file
new file mode 100644
index 000000000..7a1c6130c
--- /dev/null
+++ b/t-verify/pkg-verify/test-file
@@ -0,0 +1 @@
+some file

-- 
Dpkg.Org's dpkg

Reply via email to