Skip to content

Commit

Permalink
add test to run_small_tests for issue #15
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoslicki committed Mar 31, 2020
1 parent 9e78b3a commit aeff6d6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/script_tests/run_small_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,37 @@ echo "Classifying sample, specific settings"
rm results.csv 2> /dev/null
# make a streaming pre-filter
/usr/bin/time python ${scriptsDir}/StreamingQueryDNADatabase.py ${testOrganism} TrainingDatabase.h5 results.csv 10-21-2
if test -f results.csv; then
echo "specific classify successful"
cat results.csv
else
echo "SOMETHING WENT WRONG!!!!"
exit 1
fi

# intersection tests

echo "Classifying sample, sensitive settings, with KMC intersect"
rm results.csv 2> /dev/null
# make a streaming pre-filter
/usr/bin/time python ${scriptsDir}/StreamingQueryDNADatabase.py ${testOrganism} TrainingDatabase.h5 results.csv 10-21-2 --sensitive --intersect
if test -f results.csv; then
echo "sensitive classify successful"
cat results.csv
else
echo "SOMETHING WENT WRONG!!!!"
exit 1
fi


echo "Classifying sample, specific settings, with KMC intersect"
rm results.csv 2> /dev/null
# make a streaming pre-filter
/usr/bin/time python ${scriptsDir}/StreamingQueryDNADatabase.py ${testOrganism} TrainingDatabase.h5 results.csv 10-21-2 --intersect
if test -f results.csv; then
echo "specific classify successful"
cat results.csv
else
echo "SOMETHING WENT WRONG!!!!"
exit 1
fi

0 comments on commit aeff6d6

Please sign in to comment.