Subject: [PATCH 1/2] Test for debug-package-should-be-named-dbg

From: Raphael Geissert <[email-masked]>
Date: Sat, 6 Jun 2009 16:04:46 -0500

---
 t/tests/files-foo-in-bar/debian/debian/dirs    |    1 +
 t/tests/files-foo-in-bar/debian/debian/install |    1 +
 t/tests/files-foo-in-bar/tags                  |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/t/tests/files-foo-in-bar/debian/debian/dirs b/t/tests/files-foo-in-bar/debian/debian/dirs
index c12650c..28789e8 100644
--- a/t/tests/files-foo-in-bar/debian/debian/dirs
+++ b/t/tests/files-foo-in-bar/debian/debian/dirs
@@ -3,6 +3,7 @@ mnt/foo
 tmp/foo
 usr/bin/foo
 usr/foo
+usr/lib/debug
 usr/local/foo
 usr/lib/site-python/foo
 usr/share/doc/files-foo-in-bar/examples/examples
diff --git a/t/tests/files-foo-in-bar/debian/debian/install b/t/tests/files-foo-in-bar/debian/debian/install
index e618ae7..bc4dd26 100644
--- a/t/tests/files-foo-in-bar/debian/debian/install
+++ b/t/tests/files-foo-in-bar/debian/debian/install
@@ -4,6 +4,7 @@ bar tmp/foo
 bar usr/bin/foo
 bar usr/foo
 bar usr/local/foo
+bar usr/lib/debug/
 bar usr/lib/site-python/foo
 bar usr/share/doc/files-foo-in-bar/examples/examples
 bar var/foo
diff --git a/t/tests/files-foo-in-bar/tags b/t/tests/files-foo-in-bar/tags
index 7fa66c6..ed80e93 100644
--- a/t/tests/files-foo-in-bar/tags
+++ b/t/tests/files-foo-in-bar/tags
@@ -14,6 +14,7 @@ E: files-foo-in-bar: nested-examples-directory usr/share/doc/files-foo-in-bar/ex
 E: files-foo-in-bar: non-standard-dir-in-var var/foo/
 E: files-foo-in-bar: subdir-in-bin bin/foo/
 E: files-foo-in-bar: subdir-in-usr-bin usr/bin/foo/
+W: files-foo-in-bar: debug-package-should-be-named-dbg usr/lib/debug/bar
 W: files-foo-in-bar: executable-not-elf-or-script ./bin/foo/bar
 W: files-foo-in-bar: executable-not-elf-or-script ./usr/bin/foo/bar
 W: files-foo-in-bar: file-in-unusual-dir usr/foo/bar