Skip to content
Commits on Source (4)
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by running the provided test:
sh run-unit-test
in order to confirm its integrity.
crac (2.5.0+dfsg-3) UNRELEASED; urgency=low
[ Steffen Moeller ]
* debian/upstream/metadata: RRID -> SciCrunch
-- Steffen Moeller <moeller@debian.org> Sun, 22 Oct 2017 00:05:42 +0200
[ Andreas Tille ]
* debhelper 11
* Point Vcs fields to salsa.debian.org
* Standards-Version: 4.2.1
* Do not run build time tests in parallel since the sequence is important
* Add autopkgtest
-- Andreas Tille <tille@debian.org> Thu, 13 Sep 2018 08:38:24 +0200
crac (2.5.0+dfsg-2) unstable; urgency=low
......
......@@ -3,17 +3,17 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.
Uploaders: Andreas Tille <tille@debian.org>
Section: science
Priority: optional
Build-Depends: debhelper (>= 9),
dh-autoreconf,
Build-Depends: debhelper (>= 11~),
zlib1g-dev,
libhts-dev,
libjellyfish-2.0-dev,
libgzstream-dev,
libgkarrays-dev,
pkg-config
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/crac.git
Vcs-Git: https://anonscm.debian.org/git/debian-med/crac.git
pkg-config,
rsync
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/crac
Vcs-Git: https://salsa.debian.org/med-team/crac.git
Homepage: http://crac.gforge.inria.fr/
Package: crac
......
README
debian/README.test
debian/tests/run-unit-test
\ No newline at end of file
......@@ -4,7 +4,21 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with autoreconf
dh $@
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Sequence of tests is important so parallel execution is no option
dh_auto_test --no-parallel
endif
override_dh_installexamples:
mkdir debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples
rsync -a --exclude=Makefile* test_f debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples
sed -i 's+$${abs_top_builddir:-\.\./\.\.}/src/crac+crac+' `grep -wRl crac debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/*`
sed -i 's+$$abs_top_builddir/src/crac-index+crac-index+' `grep -wRl crac-index debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/*`
Tests: run-unit-test
Depends: @
Restrictions: allow-stderr
#!/bin/bash
set -e
pkg=crac
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP/test_f
gunzip -r *
sh ./index_genomes.sh
sh ./test_index.sh
chmod +x ./should-get.sh
sh ./launch_sg.sh