[Koha-bugs] [Bug 10112] add test for ./debian/control file

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 1 12:45:35 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10112

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65654|0                           |1
        is obsolete|                            |

--- Comment #10 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 66704
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66704&action=edit
Bug 10112 - add test for ./debian/control* files

to test, apply patch...

1/ install libparse-debcontrol-perl package
    apt-get install libparse-debcontrol-perl

2/ run successful tests
    $ perl ./t/00-valid-debian-control-file.t                                  
    1..2
    ok 1 - parsed ./debian/control file cleanly
    ok 2 - parsed ./debian/control.in file cleanly

3/ add some bad syntax to a file
    $ sed -i -e '20i -------\' ./debian/control.in

4/ run failed tests
    $ perl ./t/00-valid-debian-control-file.t
    1..2
    ok 1 - parsed ./debian/control file cleanly
    not ok 2 - parsed ./debian/control.in file cleanly

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list