Bugzilla – Attachment 17664 Details for
Bug 10112
add test for ./debian/control file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10112 - add test for ./debian/control file
Bug-10112---add-test-for-debiancontrol-file.patch (text/plain), 1.37 KB, created by
Mason James
on 2013-04-25 06:14:24 UTC
(
hide
)
Description:
Bug 10112 - add test for ./debian/control file
Filename:
MIME Type:
Creator:
Mason James
Created:
2013-04-25 06:14:24 UTC
Size:
1.37 KB
patch
obsolete
>From 7ac8c8c50571a0d901f24a64a96715989f24c4f1 Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Thu, 25 Apr 2013 04:16:25 +1200 >Subject: [PATCH] Bug 10112 - add test for ./debian/control file >Content-Type: text/plain; charset="utf-8" > >to test, apply patch... > >- run successful test > $ perl ./t/00-valid-debian-control-file.t > 1..1 > ok 1 - parsed ./debian/control file ok > >- add bad string to ./debian/control file > $ sed -i -e '20i -------\' ./debian/control > >- run failed test > $ perl ./t/00-valid-debian-control-file.t > 1..1 > not ok 1 - parsed ./debian/control file ok >--- > t/00-valid-debian-control-file.t | 23 +++++++++++++++++++++++ > 1 files changed, 23 insertions(+), 0 deletions(-) > create mode 100644 t/00-valid-debian-control-file.t > >diff --git a/t/00-valid-debian-control-file.t b/t/00-valid-debian-control-file.t >new file mode 100644 >index 0000000..d7ee2b6 >--- /dev/null >+++ b/t/00-valid-debian-control-file.t >@@ -0,0 +1,23 @@ >+use Modern::Perl; >+use Parse::DebControl; >+use Test::More; >+ >+plan tests => 1; >+ >+my $parser = new Parse::DebControl; >+ >+$parser->DEBUG(); >+ >+my %opt = ( 'stripComments' => 1, ); >+ >+my $rc; >+eval { >+ >+ local $SIG{__WARN__} = sub { }; # perls arcane syntax to shush stderr?! >+ $rc = $parser->parse_file( './debian/control', \%opt ); >+}; >+ >+isnt( $rc, undef, "parsed ./debian/control file ok" ); >+ >+1; >+ >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10112
:
17664
|
17751
|
64313
|
65654
|
66704