[med-svn] [mapdamage] 01/01: add simple tests for examples
Nadiya Sitdykova
rovenskasa-guest at moszumanska.debian.org
Fri Mar 24 02:32:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
rovenskasa-guest pushed a commit to branch master
in repository mapdamage.
commit 30436dabd32ed4ee158b16f264b9d704d498b3da
Author: rovenskasa-guest <rovenskasa at gmail.com>
Date: Thu Mar 23 19:32:26 2017 -0700
add simple tests for examples
---
debian/changelog | 8 ++++++--
debian/tests/control | 2 +-
debian/tests/run-unit-test | 22 ++++++++++++++++++++--
3 files changed, 27 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 806ab05..ed638d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
-mapdamage (2.0.6+dfsg-2) UNRELEASED; urgency=medium
+mapdamage (2.0.6+dfsg-2.1) UNRELEASED; urgency=medium
+ [ Andreas Tille ]
* Add simple autopkgtest
Closes: #848326
TODO: Follow more precise advise for testing given here:
@@ -8,7 +9,10 @@ mapdamage (2.0.6+dfsg-2) UNRELEASED; urgency=medium
* debhelper 10
* d/watch: version=4
- -- Andreas Tille <tille at debian.org> Thu, 22 Dec 2016 16:27:05 +0100
+ [ Nadiya Sitdykova ]
+ * Add simple tests for examples
+
+ -- rovenskasa <rovenskasa at gmail.com> Thu, 23 Mar 2017 19:30:32 -0700
mapdamage (2.0.6+dfsg-1) unstable; urgency=medium
diff --git a/debian/tests/control b/debian/tests/control
index 25377fc..786e5f7 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @, r-cran-runit
+Depends: @, r-cran-runit, python-pysam
Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 21dc807..67290a3 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -14,5 +14,23 @@ gunzip -r *
python rescale_test.py
-# TODO: This test should be enhanced by follwing the advise here:
-# https://ginolhac.github.io/mapDamage/#a5
\ No newline at end of file
+mapDamage -i rescale_test/pe_test/pe.sam -r rescale_test/pe_test/ref.fa
+pdf_result="results_pe/Fragmisincorporation_plot.pdf"
+
+if [ -e "$pdf_result" ]; then
+ echo "pdf result exists"
+else
+ echo "pdf result doesnt' exist"
+ exit 1
+fi
+
+mapDamage -d results_pe -y 0.1 --plot-only
+
+#rm -rf results_pe
+#mapDamage -i rescale_test/pe_test/pe.sam -r rescale_test/pe_test/ref.fa --rescale
+#--rescale doesn't work without R-libraries
+
+#mapDamage -d results_pe --forward --stats-only -v
+#asks for -r reference when shouldn't
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mapdamage.git
More information about the debian-med-commit
mailing list