[libemail-stuffer-perl] 01/06: added patch to fix continuous integration tests
dod at debian.org
dod at debian.org
Fri Feb 20 12:15:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libemail-stuffer-perl.
commit 8a3b9ec45d7d46ef6028f4fe193170c3fde1e959
Author: Dominique Dumont <dod at debian.org>
Date: Fri Feb 20 12:52:26 2015 +0100
added patch to fix continuous integration tests
---
debian/patches/fix-ci-test | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/fix-ci-test b/debian/patches/fix-ci-test
new file mode 100644
index 0000000..038292b
--- /dev/null
+++ b/debian/patches/fix-ci-test
@@ -0,0 +1,26 @@
+Description: Fix ci test
+ continuous integrations tests must be able to run tests outside of the source directory. Hence they cannot use files which are available only in source package (like dist.ini).
+ .
+ This patch uses t/basic.t instead of dist.ini to test file attachmenet.
+ .
+ This will be forwarded upstream once I'm sure that ci works.
+Forwarded: not yet
+Author: dod
+--- a/t/basic.t
++++ b/t/basic.t
+@@ -90,7 +90,7 @@
+ ->to ( 'adam at phase-n.com' )
+ ->subject ( 'Hello To:!' )
+ ->text_body ( 'I am an email' )
+- ->attach_file( 'dist.ini', content_type => 'text/plain')
++ ->attach_file( 't/basic.t', content_type => 'text/plain')
+ ->transport ( $test )
+ ->send;
+ ok( $rv2, 'Email sent ok' );
+@@ -100,5 +100,5 @@
+ like( $email, qr/phase-n/, 'Email contains to string' );
+ like( $email, qr/Hello/, 'Email contains subject string' );
+ like( $email, qr/I am an email/, 'Email contains text_body' );
+-like( $email, qr{Content-Type: text/plain; name="dist\.ini"}, 'Email contains attachment content-Type' );
++like( $email, qr{Content-Type: text/plain; name="basic\.t"}, 'Email contains attachment content-Type' );
+ 1;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9914045
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-ci-test
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libemail-stuffer-perl.git
More information about the Pkg-perl-cvs-commits
mailing list