Commit 71bca8b8 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Autopkgtest. More tests, but will be more

parent c5a32999
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -13,12 +13,13 @@ Copyright: 1998-1999 Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
           2001-2017 Aaron M. Ucko <ucko@debian.org>
License: public_domain

Files: debian/tests/test-data/nc0305.aso.gz
Files: debian/tests/test-data
Copyright: 1996-2018 NCBI 
License: public_domain
Comment: GenBank Release 224.0
 To dowload the file use:
 To dowload the files use:
	wget ftp://ftp.ncbi.nih.gov/ncbi-asn1/daily-nc/nc0305.aso.gz
	wget ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/ASN_BINARY/Viruses/dsRNA_viruses.ags.gz

License: public_domain
 The NCBI toolkit has been put into the public domain, completely unfettered:
+1 −0
Original line number Diff line number Diff line
debian/tests/test-data/nc0305.aso.gz
debian/tests/test-data/dsRNA_viruses.ags.gz
+24 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ fi

cd $AUTOPKGTEST_TMP

cp /usr/share/doc/${pkg}/test-data/nc0305.aso.gz .
cp -a /usr/share/doc/${pkg}/test-data/* .
gunzip *

echo '---asn2all test---'
@@ -48,3 +48,26 @@ echo '---asnval test---'
/usr/bin/asnval -i nc0305.aso -b -a t -o nc0305.val
[ -f nc0305.val ]
[ ! -s nc0305.val ] # empty

echo '---cleanasn test---'
/usr/bin/cleanasn -b -a t -D t -i nc0305.aso -o nc0305_cleaned.aso
[ -s nc0305_cleaned.aso ]

echo '---debruijn test---'
/usr/bin/debruijn -a ncbistdaa -n 4 > debruijn.output
[ -s debruijn.output ]

echo '---gene2xml test---'
/usr/bin/gene2xml -b -i dsRNA_viruses.ags -o dsRNA_viruses.xgs
[ -s dsRNA_viruses.xgs ]

grep 'GI:' nc0305.gbk | head | sed 's/.*GI://' > GIs.txt
# insdseqget and idfetch testing requires internet connection. Comment lines below
# to skip the testing.
echo '---insdseqget test---'
/usr/bin/insdseqget -n -i GIs.txt > insdset.xml
[ -s insdset.xml ]
echo '---idfetch test---'
/usr/bin/idfetch -G GIs.txt -t 2 -o idfetch.aso
[ -s idfetch.aso ]
+611 KiB

File added.

No diff preview for this file type.