[SCM] Debian packaging of DBD-Firebird CPAN distribution branch, master, updated. 734129c51950f86f5c59658ca65f95da9bbc87ab

Damyan Ivanov dmn at debian.org
Tue Aug 30 09:02:37 UTC 2011


The following commit has been merged in the master branch:
commit 98f2d1a8e21a5a2494b660b0943921bc30d79937
Author: Damyan Ivanov <dmn at debian.org>
Date:   Tue Aug 30 11:45:33 2011 +0300

    skip live database tests
    
    we can't ensure access to a real Firebird server

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2b75b9f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+fix-warnings.patch
+fix-ping.patch
+no-libdl.so-link.patch
+skip-db-testing.patch
diff --git a/debian/patches/skip-db-testing.patch b/debian/patches/skip-db-testing.patch
new file mode 100644
index 0000000..ec0bfc6
--- /dev/null
+++ b/debian/patches/skip-db-testing.patch
@@ -0,0 +1,19 @@
+Description: skip database tests if PERL_SKIP_DB_TESTS is in the environment
+ Testing with a real database requires a running firebird server. This cannot
+ be ensured with the current state of the Debian packages, so we make possible
+ that the tests are skipped when the environment contains the
+ PERL_SKIP_DB_TESTS variable.
+ This is used to skip database testing during debian package build.
+Author: Damyan Ivanov <dmn at deban.org>
+Forwarded: no
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -187,6 +187,7 @@ sub dir_choice
+ ################################################################################
+ sub make_test_conf
+ {
++    return if $ENV{PERL_SKIP_DB_TESTS};
+     my $test_conf = './t/test.conf';
+     my ($dsn, $user, $pass, $path, $db, $host);
+ 
diff --git a/debian/rules b/debian/rules
index e0d7cba..9a2cee8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,13 @@
 #!/usr/bin/make -f
 
+export PERL_SKIP_DB_TESTS=1
+
 %:
 	dh $@ --with=perl_dbi
 
+override_dh_auto_test:
+	prove -b t/00base.t
+
 override_dh_auto_clean:
 	# avoid re-generating Makefile
 	! [ -e Makefile ] || touch Makefile

-- 
Debian packaging of DBD-Firebird CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list