[med-svn] [concavity] 05/05: Use examples shipped inside the package to make it available as a resource for user testing as well

Andreas Tille tille at debian.org
Mon Apr 18 07:15:17 UTC 2016


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

tille pushed a commit to branch master
in repository concavity.

commit 60136efeec64d91a9f3d4ed181e9963418cc986c
Author: Andreas Tille <tille at debian.org>
Date:   Mon Apr 18 09:14:16 2016 +0200

    Use examples shipped inside the package to make it available as a resource for user testing as well
---
 debian/tests/installation-test | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/tests/installation-test b/debian/tests/installation-test
index 6621504..4cdaa38 100755
--- a/debian/tests/installation-test
+++ b/debian/tests/installation-test
@@ -11,8 +11,16 @@ WORKDIR=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
 
 cd $WORKDIR
+# Does not work
 # cp -R "${0%/*}/../../examples" $WORKDIR
+# use examples out of package which also helps users to reproduce the test as example
+cp -a /usr/share/doc/${pkg}/examples/* .
+find . -type f -name "*.gz" -exec gunzip \{\} \;
+for lnk in `find . -type l -name "*.gz"` ; do
+    ln -s `basename $(readlink $lnk) .gz` `echo $lnk | sed 's/\.gz$//'`
+    rm $lnk
+done
 
-
-concavity --help
-concavity -conservation examples/conservation_data/1G6C examples/1G6C.pdb test1
+# This very basic test is if we have no other option for testing
+# concavity --help
+concavity -conservation conservation_data/1G6C 1G6C.pdb test1

-- 
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