[med-svn] [concavity] 01/01: improve check with autopkgtests:

Tatiana Malygina latticetower-guest at moszumanska.debian.org
Tue May 31 03:35:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

latticetower-guest pushed a commit to branch master
in repository concavity.

commit 5f642690fadd24a2f1f791d1569b7f87d38f3ea3
Author: latticetower-guest <merlettaia at gmail.com>
Date:   Tue May 31 01:59:37 2016 +0000

    improve check with autopkgtests:
    
    + results check for test,
    + call with different parameters (with slightly different output)
---
 debian/changelog               |  4 ++--
 debian/tests/installation-test | 30 +++++++++++++++++++++++++++++-
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f6d52cf..ea9989b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,8 @@ concavity (0.1+dfsg-2) UNRELEASED; urgency=medium
 
   [ Tatiana Malygina ]
   * Add autopkgtest
-  
+  * Add output existence check for autopkgtest
+
   [ Andreas Tille ]
   * Remove citation information from long description
   * cme fix dpkg-control
@@ -42,4 +43,3 @@ concavity (0.1-1) unstable; urgency=low
   * Initial release (Closes: #689020)
 
  -- Laszlo Kajan <lkajan at rostlab.org>  Fri, 28 Sep 2012 14:23:53 +0200
-
diff --git a/debian/tests/installation-test b/debian/tests/installation-test
index cbebe98..221a1f7 100755
--- a/debian/tests/installation-test
+++ b/debian/tests/installation-test
@@ -25,4 +25,32 @@ done
 
 # This very basic test is if we have no other option for testing
 # concavity --help
-concavity -conservation conservation_data/1G6C 1G6C.pdb test1
+test_id=test1
+echo "Run ${test_id}"
+concavity -conservation conservation_data/1G6C 1G6C.pdb $test_id
+echo "Run: OK, checking output files..."
+# After running concavity several files should appear in working directory - check them:
+[ -s 1G6C_A_${test_id}.scores ]
+[ -s 1G6C_B_${test_id}.scores ]
+[ -s 1G6C_C_${test_id}.scores ]
+[ -s 1G6C_D_${test_id}.scores ]
+[ -s 1G6C_${test_id}_residue.pdb ]
+[ -s 1G6C_${test_id}.dx ]
+[ -s 1G6C_${test_id}.pml ]
+echo "Results: OK"
+
+test_id=cc-pocketfinder_search_blur
+echo "Run ${test_id}"
+#Another simple test with non-default parameters (as suggested in readme.txt):
+concavity -conservation conservation_data/1G6C -grid_method pocketfinder \
+-extraction_method search -res_map_method blur 1G6C.pdb ${test_id}
+echo "Run: OK, checking output files..."
+# After running concavity several files should appear in working directory - check them:
+[ -s 1G6C_A_${test_id}.scores ]
+[ -s 1G6C_B_${test_id}.scores ]
+[ -s 1G6C_C_${test_id}.scores ]
+[ -s 1G6C_D_${test_id}.scores ]
+[ -s 1G6C_${test_id}_residue.pdb ]
+[ -s 1G6C_${test_id}.dx ]
+[ -s 1G6C_${test_id}.pml ]
+echo "Results: OK"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/concavity.git



More information about the debian-med-commit mailing list