[PATCH] Add test cases for checkbuilddep_archdeps

Matt Palmer mpalmer at hezmatt.org
Wed Dec 15 05:36:02 UTC 2010


---
 test_pbuilder-satisfydepends-funcs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/test_pbuilder-satisfydepends-funcs b/test_pbuilder-satisfydepends-funcs
index 4eaa665..2951cb3 100755
--- a/test_pbuilder-satisfydepends-funcs
+++ b/test_pbuilder-satisfydepends-funcs
@@ -86,4 +86,17 @@ expect_output "autotools-dev (>= 1.2), debhelper, quilt (<< 12:0), libwxgtk2.8-d
 
 expect_output "debhelper (>= 7)" test_get_build_deps_dsc
 
+# "Success" in checkbuilddep_archdeps means "do not install", and
+# "fail" means "please do install"
+expect_fail checkbuilddep_archdeps "test [i386]" "i386"
+expect_fail checkbuilddep_archdeps "test [i386 amd64]" "i386"
+expect_fail checkbuilddep_archdeps "test [!sparc64]" "i386"
+expect_success checkbuilddep_archdeps "test [sparc64]" "i386"
+expect_success checkbuilddep_archdeps "test [!i386]" "i386"
+
+expect_fail checkbuilddep_archdeps "test [linux-any]" "i386"
+expect_success checkbuilddep_archdeps "test [hurd-any]" "i386"
+expect_fail checkbuilddep_archdeps "test [!hurd-any]" "i386"
+expect_success checkbuilddep_archdeps "test [!linux-any]" "i386"
+
 testlib_summary
-- 
1.5.6.5


--qjNfmADvan18RZcF
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0004-Fix-a-tiny-aesthetic-nit-in-pbuilder-satisfydepends.patch"



More information about the Pbuilder-maint mailing list