[med-svn] r16784 - trunk/packages/python-biopython/trunk/debian/Tests_fixme
Andreas Tille
tille at moszumanska.debian.org
Fri Apr 25 07:42:32 UTC 2014
Author: tille
Date: 2014-04-25 07:42:32 +0000 (Fri, 25 Apr 2014)
New Revision: 16784
Modified:
trunk/packages/python-biopython/trunk/debian/Tests_fixme/run_failing_tests
Log:
Fixed and enhanced test script
Modified: trunk/packages/python-biopython/trunk/debian/Tests_fixme/run_failing_tests
===================================================================
--- trunk/packages/python-biopython/trunk/debian/Tests_fixme/run_failing_tests 2014-04-25 07:27:49 UTC (rev 16783)
+++ trunk/packages/python-biopython/trunk/debian/Tests_fixme/run_failing_tests 2014-04-25 07:42:32 UTC (rev 16784)
@@ -8,28 +8,29 @@
fi
DOC=/usr/share/doc/python-biopython-doc/
-TESTS=$DOC/Tests
+DATA=$DOC/Tests
+TESTS=$DOC/Tests_avoid
mkdir $ADTTMP/Tests
cp -a run_failed_tests.py $ADTTMP/Tests
cd $ADTTMP
mkdir Doc
-cp -a $DOC/Doc/Tutorial.tex* Doc
+cp -a $DOC/Doc/Tutorial.tex* Doc
cd Tests
mkdir Clustalw
mkdir Fasta
-cp -a $TESTS/Fasta/f00[12]* Fasta
+cp -a $DATA/Fasta/f00[12]* Fasta
mkdir GenBank
-cp -a $TESTS/GenBank/NC_005816.gb* GenBank
+cp -a $DATA/GenBank/NC_005816.gb* GenBank
mkdir Graphics
-cp -a $TESTS/Graphics/README* Graphics
+cp -a $DATA/Graphics/README* Graphics
mkdir Medline
-cp -a $TESTS/Medline/pubmed_result1.txt* Medline
+cp -a $DATA/Medline/pubmed_result1.txt* Medline
mkdir Phylip
-cp -a $TESTS/Phylip/hennigian.phy* Phylip
+cp -a $DATA/Phylip/hennigian.phy* Phylip
mkdir Quality
-cp -a $TESTS/Quality/example.fasta* Quality
+cp -a $DATA/Quality/example.fasta* Quality
FAILINGTESTS="GenomeDiagram Fasttree_tool Mafft_tool ColorSpiral trie"
for ft in $FAILINGTESTS ; do
@@ -39,7 +40,12 @@
for ft in $FAILINGTESTS ; do
for pi in $(pyversions -i) $(py3versions -i); do
- $pi run_failed_tests.py -v test_$ft 2>&1 | tee > ../${ft}_${pi}.log
+ $pi run_failed_tests.py -v test_$ft 2>&1 | tee > ../${ft}_${pi}.log
+ if grep -qwi fail ../${ft}_${pi}.log ; then
+ echo "Test ${ft} with ${pi}: FAIL"
+ else
+ echo "Test ${ft} with ${pi}: ok"
+ fi
done
done
rm -fr *.pyc __pycache__
More information about the debian-med-commit
mailing list