From 7a80177e6b48eb6c670aa86a5b8597acaa81a5cd Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@debian.org>
Date: Sat, 14 May 2016 23:46:22 +0200
Subject: [PATCH] Run autpkgtests also for debug packages

While looking at debdiff against previous release, I just realised
that the debug packages are not tested in any way, so let's fix that.
---
 debian/tests/run-testsuite-if-attrs-enabled | 4 ++++
 debian/tests/simple                         | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/debian/tests/run-testsuite-if-attrs-enabled b/debian/tests/run-testsuite-if-attrs-enabled
index 04cb2ec..11d51cc 100755
--- a/debian/tests/run-testsuite-if-attrs-enabled
+++ b/debian/tests/run-testsuite-if-attrs-enabled
@@ -9,8 +9,12 @@ if setfattr -n user.foo -v bar "$TESTFILE"; then
   export TEST_DIR="$ADTTMP"
   echo "* testing Python 2"
   python2 test/test_xattr.py
+  echo "* testing Python 2 debug package"
+  python2-dbg test/test_xattr.py
   echo "* testing Python 3"
   python3 test/test_xattr.py
+  echo "* testing Python 3 debug package"
+  python3-dbg test/test_xattr.py
 else
   echo "Temporary directory '$ADTTMP' doesn't have extended attributes enabled"
   echo "Skipping the tests :("
diff --git a/debian/tests/simple b/debian/tests/simple
index 8212962..534fc2f 100755
--- a/debian/tests/simple
+++ b/debian/tests/simple
@@ -1,4 +1,6 @@
 #!/bin/sh
 
 python2 -c 'import xattr; print xattr; print xattr.__version__'
+python2-dbg -c 'import xattr; print xattr; print xattr.__version__'
 python3 -c 'import xattr; print(xattr); print(xattr.__version__)'
+python3-dbg -c 'import xattr; print(xattr); print(xattr.__version__)'
-- 
2.39.5