[med-svn] [Git][med-team/lefse][master] Some unit test refinements
Shayan Doust
gitlab at salsa.debian.org
Wed Sep 11 17:27:25 BST 2019
Shayan Doust pushed to branch master at Debian Med / lefse
Commits:
6883422d by Shayan Doust at 2019-09-11T16:22:58Z
Some unit test refinements
- - - - -
1 changed file:
- debian/tests/run-unit-test
Changes:
=====================================
debian/tests/run-unit-test
=====================================
@@ -4,18 +4,20 @@ set -e
# Run comparative tests to see if we get an expected default output. Test installed files so no need to move them.
# run_lefse
-if [[ $(run_lefse 2>&1) = "usage: run_lefse [-h]"* ]]; then
+if [[ $(run_lefse -h 2>&1) = "usage: run_lefse [-h]"* ]]; then
echo "run_lefse comparative pass"
else
- echo "run_lefse comparative fail"
+ echo "run_lefse comparative fail. Instead, I get:"
+ run_lefse -h
exit 1
fi
# format_input
-if [[ $(format_input 2>&1) = "usage: format_input [-h]"* ]]; then
+if [[ $(format_input -h 2>&1) = "usage: format_input [-h]"* ]]; then
echo "format_input comparative pass"
else
- echo "format_input comparative fail"
+ echo "format_input comparative fail. Instead, I get:"
+ format_input -h
exit 1
fi
@@ -23,31 +25,35 @@ fi
if [[ $(lefse2circlader -h 2>&1) = "usage: lefse2circlader [-h]"* ]]; then
echo "lefse2circlader comparative pass"
else
- echo "lefse2circlader comparative fail"
+ echo "lefse2circlader comparative fail. Instead, I get:"
+ lefse2circlader -h
exit 1
fi
# plot_cladogram
-if [[ $(plot_cladogram 2>&1) = "usage: plot_cladogram [-h]"* ]]; then
+if [[ $(plot_cladogram -h 2>&1) = "usage: plot_cladogram [-h]"* ]]; then
echo "plot_cladogram comparative pass"
else
- echo "plot_cladogram comparative fail"
+ echo "plot_cladogram comparative fail. Instead, I get:"
+ plot_cladogram -h
exit 1
fi
# plot_features
-if [[ $(plot_features 2>&1) = "usage: plot_features [-h]"* ]]; then
+if [[ $(plot_features -h 2>&1) = "usage: plot_features [-h]"* ]]; then
echo "plot_features comparative pass"
else
- echo "plot_features comparative fail"
+ echo "plot_features comparative fail. Instead, I get:"
+ plot_features -h
exit 1
fi
# plo_res
-if [[ $(plot_res 2>&1) = "usage: plot_res [-h]"* ]]; then
+if [[ $(plot_res -h 2>&1) = "usage: plot_res [-h]"* ]]; then
echo "plot_res comparative pass"
else
- echo "plot_res comparative fail"
+ echo "plot_res comparative fail. Instead, I get:"
+ plot_res -h
exit 1
fi
@@ -55,6 +61,7 @@ fi
if [[ $(qiime2lefse -h 2>&1) = "usage: qiime2lefse [-h]"* ]]; then
echo "qiime2lefse comparative pass"
else
- echo "qiime2lefse comparative fail"
+ echo "qiime2lefse comparative fail. Instead, I get:"
+ qiime2lefse -h
exit 1
fi
View it on GitLab: https://salsa.debian.org/med-team/lefse/commit/6883422d54a8e8ce52ac0ecd1954cc659b89e4dd
--
View it on GitLab: https://salsa.debian.org/med-team/lefse/commit/6883422d54a8e8ce52ac0ecd1954cc659b89e4dd
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190911/f697d0e4/attachment-0001.html>
More information about the debian-med-commit
mailing list