[med-svn] [camitk] 02/04: wizard tests gained verbosity

Emmanuel Promayon promayon-guest at moszumanska.debian.org
Sat Jan 21 08:48:20 UTC 2017


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

promayon-guest pushed a commit to branch master
in repository camitk.

commit 03aab6453c09e9433c93eb034997a87a5d17606b
Author: Emmanuel Promayon <Emmanuel.Promayon at univ-grenoble-alpes.fr>
Date:   Fri Jan 20 18:28:15 2017 +0100

    wizard tests gained verbosity
---
 debian/tests/wizard | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/debian/tests/wizard b/debian/tests/wizard
index 2557a93..3104279 100644
--- a/debian/tests/wizard
+++ b/debian/tests/wizard
@@ -3,8 +3,6 @@
 # cepgenerator and devtools
 # 
 # echo $? get the last returned value of the script
-# 
-# TODO check control file syntax (to be able to put two test, cf libxml2)
 #
 # TODO add complete library tests using cepgenerator
 # This can be done using exampleLibraryAction.xml 
@@ -18,23 +16,49 @@
 # + add "echo "#include "ActionDoSomething.cpp"" >> actions/emptyaction/Action.cpp"
 # and compile only then
 # @see the shaker lib turorial
-# 
 #
 # TODO add a complete example with all the possible Property types
 # @see the property tutorial
 #
-# TODO add another family of test using testaction and testcomponent on cepgenerated action/components
-# 
+# TODO add another family of tests using testaction and testcomponent on cepgenerated action/components
+#
+# TODO distribute all the files from the ./sdk/applications/cepgenerator/testdata directory 
+# in the package $(pkg-dev) so that they are installed in /usr/share/camitk-$(VER_SHORT)/testdata/cepgenerator/*
+# In this script, just copy all files from /usr/share/camitk-$(VER_SHORT)/testdata/cepgenerator/* to the tmpdir
+# and run a foreach on each .xml files
 
 set -e
 
-# To test with different library values uncomment this:
+#DEBUG
+#set -x
+
+#DEBUG
+#To test with different library versions, you can use different install path, for instance:
 # CMAKE_OPTIONS="-DVTK_DIR:PATH=/opt/vtk6/lib/cmake/vtk-6.3 -DITK_DIR:PATH=/opt/vtk6/lib/cmake/ITK-4.9 -DGDCM_DIR:PATH=/opt/vtk6/lib/gdcm-2.6"
 
 # cleanup on exit
 cleanup() {
     # backup the current exit status
     currentExitValue=$?
+    if [ "$currentExitValue" -ne "0" ]; then
+        # output all possible files
+        cd $workingDir
+        echo
+        echo "===== ABORTED ====="
+        echo
+        echo "===== ABORTED wizard-$testDirName ====="
+        cat ./wizard-$testDirName
+        cd $testDirName/build
+        echo "===== ABORTED cmake-log ====="
+        cat ../cmake-log
+        echo "===== ABORTED cmake-error ====="  
+        cat ../cmake-error
+        echo "===== ABORTED make-log ====="
+        cat ../make-log
+        echo "===== ABORTED make-error ====="  
+        cat ../make-error
+        cd
+    fi
     # cleanup current dir
     rm -rf $workingDir
     # use the backup value (otherwise the result of the "rm -rf" command above will

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



More information about the debian-med-commit mailing list