[Debian-med-packaging] [Git][med-team/ncbi-tools6][master] Autopkgtest: commented tests which require internet connection

Andreas Tille andreas at an3as.eu
Thu Apr 12 17:23:42 BST 2018


Hi,

when looking at this commit I'd suggest to not comment the tests
that need networking but rather control it with

if [ "$NETWORK" = "yes" ] ; then
...
fi

When a user runs the script on a local machine its easy to activate
the tests.

Thanks for the continuous work on this

      Andreas.

On Thu, Apr 12, 2018 at 03:41:02PM +0000, Liubov Chuprikova wrote:
> Liubov Chuprikova pushed to branch master at Debian Med / ncbi-tools6
> 
> 
> Commits:
> c526581f by Liubov Chuprikova at 2018-04-12T15:24:10+00:00
> Autopkgtest: commented tests which require internet connection
> 
> - - - - -
> 
> 
> 1 changed file:
> 
> - debian/tests/run-unit-test
> 
> 
> Changes:
> 
> =====================================
> debian/tests/run-unit-test
> =====================================
> --- a/debian/tests/run-unit-test
> +++ b/debian/tests/run-unit-test
> @@ -113,21 +113,21 @@ end_out="$(grep -c "<Object-id_id>${last_id}</Object-id_id>" dsRNA_viruses.xgs)"
>  [ $end_in -eq $end_out ]
>  
>  
> -# _insdseqget_ and _idfetch_ testing requires internet connection.
> -# Comment the lines below to skip the testing.
> -grep 'GI:' nc0225.gbk | head | sed 's/.*GI://' > GIs.txt
> -##################################################################
> -echo '---insdseqget test---'
> -##################################################################
> -/usr/bin/insdseqget -i GIs.txt > insdset.xml
> -[ -s insdset.xml ]
> -check_GI insdset.xml GIs.txt
> -##################################################################
> -echo '---idfetch test---'
> -##################################################################
> -/usr/bin/idfetch -G GIs.txt -o idfetch.text
> -[ -s idfetch.text ]
> -check_GI idfetch.text GIs.txt
> +## _insdseqget_ and _idfetch_ testing requires internet connection.
> +## Uncomment the lines below to run the tests provided.
> +#grep 'GI:' nc0225.gbk | head | sed 's/.*GI://' > GIs.txt
> +###################################################################
> +#echo '---insdseqget test---'
> +###################################################################
> +#/usr/bin/insdseqget -i GIs.txt > insdset.xml
> +#[ -s insdset.xml ]
> +#check_GI insdset.xml GIs.txt
> +###################################################################
> +#echo '---idfetch test---'
> +###################################################################
> +#/usr/bin/idfetch -G GIs.txt -o idfetch.text
> +#[ -s idfetch.text ]
> +#check_GI idfetch.text GIs.txt
>  
>  
>  ##################################################################
> 
> 
> 
> View it on GitLab: https://salsa.debian.org/med-team/ncbi-tools6/commit/c526581f868b2845af42aa7df9edf7d8ce847117
> 
> ---
> View it on GitLab: https://salsa.debian.org/med-team/ncbi-tools6/commit/c526581f868b2845af42aa7df9edf7d8ce847117
> You're receiving this email because of your account on salsa.debian.org.

> _______________________________________________
> debian-med-commit mailing list
> debian-med-commit at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit


-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list