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=6ec6dde0d8e3ca15bed1bfc5706a280ab2826e63

commit 6ec6dde0d8e3ca15bed1bfc5706a280ab2826e63
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Nov 14 00:17:08 2014 +0100

    t-control-bogus: Add new test cases
---
 t-control-bogus/Makefile                                     | 12 ++++++++++++
 .../DEBIAN/control                                           |  6 +++---
 t-control-bogus/pkg-bogus-fieldname-partial/DEBIAN/control   |  7 +++++++
 .../DEBIAN/control                                           |  7 +++----
 4 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/t-control-bogus/Makefile b/t-control-bogus/Makefile
index 4aaea204b..ec042ddbe 100644
--- a/t-control-bogus/Makefile
+++ b/t-control-bogus/Makefile
@@ -4,16 +4,28 @@ test-case:
        # test building package with bogus control files
        ! $(DPKG_BUILD_DEB) pkg-bogus-colon
        ! $(DPKG_BUILD_DEB) pkg-bogus-blank
+       ! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-empty
+       ! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-partial
+       ! $(DPKG_BUILD_DEB) pkg-bogus-format-string
        
        # build bogus packages
        $(DPKG_BUILD_DEB) --nocheck pkg-bogus-colon
        $(DPKG_BUILD_DEB) --nocheck pkg-bogus-blank
+       $(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-empty
+       $(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-partial
+       $(DPKG_BUILD_DEB) --nocheck pkg-bogus-format-string
        
        # test installing packages with bogus control files
        ! $(DPKG_INSTALL) pkg-bogus-colon.deb
        $(call pkg_is_not_installed,pkg-bogus-colon)
        ! $(DPKG_INSTALL) pkg-bogus-blank.deb
        $(call pkg_is_not_installed,pkg-bogus-blank)
+       ! $(DPKG_INSTALL) pkg-bogus-fieldname-empty.deb
+       $(call pkg_is_not_installed,pkg-bogus-fieldname-empty)
+       ! $(DPKG_INSTALL) pkg-bogus-fieldname-partial.deb
+       $(call pkg_is_not_installed,pkg-bogus-fieldname-partial)
+       ! $(DPKG_INSTALL) pkg-bogus-format-string.deb
+       $(call pkg_is_not_installed,pkg-bogus-format-string)
 
 test-clean:
        rm -f pkg-bogus-colon.deb
diff --git a/t-control-bogus/pkg-bogus-colon/DEBIAN/control 
b/t-control-bogus/pkg-bogus-fieldname-empty/DEBIAN/control
similarity index 52%
copy from t-control-bogus/pkg-bogus-colon/DEBIAN/control
copy to t-control-bogus/pkg-bogus-fieldname-empty/DEBIAN/control
index 3b3247675..ad433ca5e 100644
--- a/t-control-bogus/pkg-bogus-colon/DEBIAN/control
+++ b/t-control-bogus/pkg-bogus-fieldname-empty/DEBIAN/control
@@ -1,8 +1,8 @@
-Package: pkg-bogus
-BOGUS-LINE
+Package: pkg-bogus-fieldname-empty
 Version: 0.0-1
 Section: test
 Priority: extra
 Maintainer: Dpkg Developers <[email protected]>
 Architecture: all
-Description: test package - bogus control file
+: value
+Description: test package - bogus control file w/ empty field name
diff --git a/t-control-bogus/pkg-bogus-fieldname-partial/DEBIAN/control 
b/t-control-bogus/pkg-bogus-fieldname-partial/DEBIAN/control
new file mode 100644
index 000000000..dd28c0bd0
--- /dev/null
+++ b/t-control-bogus/pkg-bogus-fieldname-partial/DEBIAN/control
@@ -0,0 +1,7 @@
+Pack: pkg-bogus-fieldname-partial
+Vers: 0.0-1
+Sect: test
+Prio: extra
+Main: Dpkg Developers <[email protected]>
+Arch: all
+Desc: test package - bogus control file w/ partial field names
diff --git a/t-control-bogus/pkg-bogus-colon/DEBIAN/control 
b/t-control-bogus/pkg-bogus-format-string/DEBIAN/control
similarity index 50%
copy from t-control-bogus/pkg-bogus-colon/DEBIAN/control
copy to t-control-bogus/pkg-bogus-format-string/DEBIAN/control
index 3b3247675..bbb181ad7 100644
--- a/t-control-bogus/pkg-bogus-colon/DEBIAN/control
+++ b/t-control-bogus/pkg-bogus-format-string/DEBIAN/control
@@ -1,8 +1,7 @@
-Package: pkg-bogus
-BOGUS-LINE
+Package: %s
 Version: 0.0-1
 Section: test
 Priority: extra
 Maintainer: Dpkg Developers <[email protected]>
-Architecture: all
-Description: test package - bogus control file
+Architecture: %s
+Description: test package - bogus control file w/ format string in values

-- 
Dpkg.Org's dpkg

Reply via email to