Skip to content
Commits on Source (4)
libfastahack (1.0.0+dfsg-4) unstable; urgency=medium
* Team upload.
* Generate a manual page with help2man
* Run some basic tests
* Use those tests as an autopkgtest
-- Michael R. Crusoe <michael.crusoe@gmail.com> Wed, 08 Jan 2020 10:55:37 +0100
libfastahack (1.0.0+dfsg-3) unstable; urgency=medium
[ Steve Langasek ]
......
......@@ -5,7 +5,8 @@ Section: science
Priority: optional
Build-Depends: debhelper-compat (= 12),
d-shlibs,
libdisorder-dev
libdisorder-dev,
help2man
Standards-Version: 4.4.1
Vcs-Browser: https://salsa.debian.org/med-team/libfastahack
Vcs-Git: https://salsa.debian.org/med-team/libfastahack.git
......@@ -40,7 +41,6 @@ Package: libfastahack-dev
Architecture: any
Section: libdevel
Depends: libfastahack0 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: library for indexing and sequence extraction from FASTA files (devel)
fastahack is a small application for indexing and extracting sequences and
......
......@@ -3,10 +3,27 @@
# DH_VERBOSE := 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_installman:
help2man --no-discard-stderr --no-info --version-string=$(DEB_VERSION) \
--name="fastahack - indexing and extracting sequences and subsequences from FASTA files" \
./fastahack > debian/fastahack.1
dh_installman
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
./fastahack tests/correct.fasta 2>&1 | grep -v ERROR
./fastahack tests/crlf.fasta 2>&1 | grep -v ERROR
./fastahack tests/embedded_newline.fasta 2>&1 | grep 'ERROR: embedded newline'
./fastahack tests/mismatched_lines.fasta 2>&1 | grep 'ERROR: mismatched line lengths'
./fastahack tests/trailing_newlines.fasta 2>&1 | grep -v ERROR
rm tests/*.fai
endif
override_dh_install:
dh_install
d-shlibmove --commit \
......
Test-Command: /usr/bin/fastahack tests/correct.fasta 2>&1 | grep -v ERROR && /usr/bin/fastahack tests/crlf.fasta 2>&1 | grep -v ERROR && /usr/bin/fastahack tests/embedded_newline.fasta 2>&1 | grep 'ERROR: embedded newline' && /usr/bin/fastahack tests/mismatched_lines.fasta 2>&1 | grep 'ERROR: mismatched line lengths' && /usr/bin/fastahack tests/trailing_newlines.fasta 2>&1 | grep -v ERROR
Depends: fastahack
Restrictions: allow-stderr