[Outreachy] You can use "Team upload" (Was: r22074 - in trunk/packages/conservation-code/trunk/debian: . tests)
Hi Tanya,
when looking at the SVN commit log:
1. You can avoid the NMU-revision by adding
* Team upload
to the changelog file. This can be done automatically by using
dch --team
2. Hint for d/control: Adding
Testsuite: autopkgtest
is fine but redundant since some dpkg version I do not remember.
So far for the formal things. I'll check the test itself later.
Thanks for your contribution
Andreas.
On Thu, Jun 02, 2016 at 01:19:48AM +0000, Tatiana Malygina wrote:
> Author: latticetower-guest
> Date: 2016-06-02 01:19:46 +0000 (Thu, 02 Jun 2016)
> New Revision: 22074
>
> Added:
> trunk/packages/conservation-code/trunk/debian/tests/
> trunk/packages/conservation-code/trunk/debian/tests/control
> trunk/packages/conservation-code/trunk/debian/tests/installation-test
> Modified:
> trunk/packages/conservation-code/trunk/debian/changelog
> trunk/packages/conservation-code/trunk/debian/control
> Log:
> add draft autopkgtest test
>
> Modified: trunk/packages/conservation-code/trunk/debian/changelog
> ===================================================================
> --- trunk/packages/conservation-code/trunk/debian/changelog 2016-06-01 22:48:34 UTC (rev 22073)
> +++ trunk/packages/conservation-code/trunk/debian/changelog 2016-06-02 01:19:46 UTC (rev 22074)
> @@ -1,3 +1,9 @@
> +conservation-code (20110309.0-4.1) unstable; urgency=medium
> +
> + * add draft autopkgtest
> +
> + -- Tatiana Malygina <merlettaia@gmail.com> Thu, 02 Jun 2016 01:10:35 +0000
> +
> conservation-code (20110309.0-4) unstable; urgency=medium
>
> * added myself to Uploaders
>
> Modified: trunk/packages/conservation-code/trunk/debian/control
> ===================================================================
> --- trunk/packages/conservation-code/trunk/debian/control 2016-06-01 22:48:34 UTC (rev 22073)
> +++ trunk/packages/conservation-code/trunk/debian/control 2016-06-02 01:19:46 UTC (rev 22074)
> @@ -3,6 +3,7 @@
> Uploaders: Laszlo Kajan <lkajan@rostlab.org>,
> Andreas Tille <tille@debian.org>
> Section: science
> +Testsuite: autopkgtest
> Priority: optional
> Build-Depends: debhelper (>= 9),
> perl,
>
> Added: trunk/packages/conservation-code/trunk/debian/tests/control
> ===================================================================
> --- trunk/packages/conservation-code/trunk/debian/tests/control (rev 0)
> +++ trunk/packages/conservation-code/trunk/debian/tests/control 2016-06-02 01:19:46 UTC (rev 22074)
> @@ -0,0 +1,2 @@
> +Tests: installation-test
> +Depends: @
>
>
> Property changes on: trunk/packages/conservation-code/trunk/debian/tests/control
> ___________________________________________________________________
> Added: svn:executable
> + *
>
> Added: trunk/packages/conservation-code/trunk/debian/tests/installation-test
> ===================================================================
> --- trunk/packages/conservation-code/trunk/debian/tests/installation-test (rev 0)
> +++ trunk/packages/conservation-code/trunk/debian/tests/installation-test 2016-06-02 01:19:46 UTC (rev 22074)
> @@ -0,0 +1,22 @@
> +#!/bin/sh
> +# autopkgtest check: build and run with default test data, taken from package's readme.txt
> +# Author: Tatiana Malygina <merlettaia@gmail.com>
> +
> +# Following line is commented, because in normal situation conservation-code
> +# returns error code 1 (or 2), when it is called with less than 2 parameters:
> +#set -e
> +
> +pkg=conservation-code
> +
> +if [ "$ADTTMP" = "" ] ; then
> + ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
> + trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
> +fi
> +
> +cd $ADTTMP
> +
> +#this just shows help - and also returns error code 1 (because no alignment matrix can be found):
> +score_conservation -h
> +
> +#the same error is produced by call
> +score_conservation -m /usr/share/${pkg}/matrix/blosum62.bla 2plc__hssp-filtered.aln
>
>
> Property changes on: trunk/packages/conservation-code/trunk/debian/tests/installation-test
> ___________________________________________________________________
> Added: svn:executable
> + *
>
>
> _______________________________________________
> debian-med-commit mailing list
> debian-med-commit@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
>
--
http://fam-tille.de
Reply to: