This is an automated email from the git hooks/post-receive script.

xguimard-guest pushed a commit to branch master
in repository lemonldap-ng.

commit 6434dd584e0600c15ae617e48ff8d9d396bcc4f1
Author: Xavier Guimard <x.guim...@free.fr>
Date:   Sat Nov 12 08:40:46 2016 +0100

    Update autopkgtest tests
---
 debian/changelog                    |  3 ++-
 debian/tests/lib/build-deps.d/smoke | 40 +++++++++++++++++++++++++------------
 2 files changed, 29 insertions(+), 14 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e97d899..4339d67 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,9 +7,10 @@ lemonldap-ng (1.9.6-1) UNRELEASED; urgency=medium
   * Remove alternate dependency to libwww-perl <<6
   * Replace spelling error patch
   * Update patches
+  * Keep Mouse for tests and command-line
   * Add lsb-base in fastcgi server dependencies
   * Replace Net::Twitter dependency by Net::OAuth
-  * Add autopkgtest tests
+  * Add autopkgtest tests (copied from pkg-perl-autopkgtest and adapted)
 
  -- Xavier Guimard <x.guim...@free.fr>  Tue, 18 Oct 2016 11:18:26 +0200
 
diff --git a/debian/tests/lib/build-deps.d/smoke 
b/debian/tests/lib/build-deps.d/smoke
index 5765bb8..66126c6 100755
--- a/debian/tests/lib/build-deps.d/smoke
+++ b/debian/tests/lib/build-deps.d/smoke
@@ -2,16 +2,16 @@
 set -e
 
 cleanup() {
-       cd $PDIR
+    cd $PDIR
 
-       #Clean up after smoke-setup
-       cleanup_file=debian/tests/pkg-perl/smoke-cleanup
-       if [ -x $cleanup_file ]
-       then
-           ( export TDIR; $cleanup_file )
-       fi
+    #Clean up after smoke-setup
+    cleanup_file=debian/tests/pkg-perl/smoke-cleanup
+    if [ -x $cleanup_file ]
+    then
+        ( export TDIR; $cleanup_file )
+    fi
 
-       rm -rf $TDIR
+    rm -rf $TDIR
 }
 
 TEMP=${ADTTMP:-${TMPDIR:-/tmp}}
@@ -46,9 +46,6 @@ if [ -r $env_list ]; then
     eval $(sed '/^ *\(#\|$\)/d; s/^/export /' $env_list)
 fi
 
-mkdir ${TDIR}/lemonldap-ng-common
-cp  lemonldap-ng-common/lemonldap-ng.ini ${TDIR}/lemonldap-ng-common
-
 for dir in common handler portal manager; do
     TDIR2=${TDIR}/lemonldap-ng-$dir
     mkdir -p $TDIR2/blib/lib \
@@ -78,9 +75,26 @@ EOF
     if [ ! -e $TDIR2/MANIFEST.SKIP ]; then
         cp /dev/null $TDIR2/MANIFEST.SKIP
     fi
+done
 
-    # common nuisances, no value with runtime tests
-    rm -f $TDIR2/t/99-pod.t
+# Missing file
+cp  lemonldap-ng-common/lemonldap-ng.ini ${TDIR}/lemonldap-ng-common
+
+# Test that have no interest
+rm -f $TDIR/*/t/99-pod.t \
+    $TDIR/lemonldap-ng-manager/t/03-HTML-forms.t \
+    $TDIR/lemonldap-ng-manager/t/20-test-coverage.t \
+    $TDIR/lemonldap-ng-manager/t/80-attributes.t \
+    $TDIR/lemonldap-ng-manager/t/90-translations.t
+
+for INI in $(find $TDIR/lemonldap-ng-* -name lemonldap-ng.ini); do
+    echo "Change $INI logLevel to debug" >&2
+    perl -pi -e 's/^logLevel\s*=\s*\w+$/logLevel=debug/' $INI
+done
+
+# For now, too many bugs with Moose in autopkg jail, so manager isn't tested
+for dir in common handler portal; do
+    TDIR2=${TDIR}/lemonldap-ng-$dir
 
     # this is intended to be a last resort, please use it responsibly
     setup_file=debian/tests/pkg-perl/smoke-setup

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/lemonldap-ng.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to