overriding autotest as there is nothing to test until pysam is installed. nose tests...
authorJorge Soares <j.s.soares@gmail.com>
Fri, 28 Nov 2014 14:26:44 +0000 (14:26 +0000)
committerJorge Soares <j.s.soares@gmail.com>
Fri, 28 Nov 2014 14:26:44 +0000 (14:26 +0000)
debian/python-tests/run-nose-tests
debian/python3-tests/run-nose3-tests [changed mode: 0644->0755]
debian/rules

index 0d193513be2ef575f510dcc4df4c01b829316659..2441b1d5bcb7752c1c4abd221298e1ed0f5892f3 100644 (file)
@@ -5,4 +5,6 @@ if [ "$ADTTMP" = "" ] ; then
 fi
 cd $ADTTMP
 cp -a /usr/share/doc/python-pysam/tests/* $ADTTMP
-nosetesrs --nocapture
+nosetests --nocapture
+rm -rf $ADTTMP
+
old mode 100644 (file)
new mode 100755 (executable)
index e710ac5..85628ae
@@ -6,3 +6,5 @@ fi
 cd $ADTTMP
 cp -a /usr/share/doc/python3-pysam/tests/* $ADTTMP
 nosetests3 --nocapture
+rm -rf $ADTTMP
+
index 7cd5155ebbe1c52cb39d8678ab9c3eecf972020a..bad97877cb6ca50fbcdf711d32b8d7d52da0c223 100755 (executable)
@@ -14,44 +14,6 @@ export HTSLIB_INCLUDE_DIR=/usr/include
 %:
        dh $@ --with python2,python3 --buildsystem=pybuild
 
-#Make sure Cython is recreating some c-files.  To enable building twice in a
-#row these will be saved in advance and restored afterwards
-#debian/savefiles:
-#      if grep -q -l "Generated by Cython" pysam/*.c ; then \
-#          mkdir -p debian/savefiles ; \
-#          mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
-       fi
-
-#override_dh_auto_test:
-
-
-#override_dh_clean:
-#      dh_clean
-# restore cython generated files
-#      if [ -d debian/savefiles ] ; then \
-#          mv debian/savefiles/* pysam ; \
-#          rm -rf debian/savefiles ; \
-#      fi
-
-#override_dh_auto_build: debian/savefiles
-#       dh_auto_build
-
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-#      LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
-#              --test-args='set -e; \
-#                           cp -a $(CURDIR)/tests ${build_dir}/tests ; \
-#                           cd {build_dir}/tests PYTHONPATH=${build_dir} ${interpreter} ./pysam_test.py \
-#                                                && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH=${build_dir} ${interpreter} ./tabix_test.py '
-#endif
-
-#override_dh_install-indep:
-#      dh_install -p $(TESTPKG)
-#      cd debian/$(TESTPKG)/usr/share/doc/python-pysam/tests; \
-#          make clean; \
-#          rm -f log.txt ; \
-#          chmod a+x tabix_test.py
-#      cd debian/$(TESTPKG)/usr/share/doc/python3-pysam/tests; \
-#          make clean; \
-#          rm -f log.txt ; \
-#          chmod a+x tabix_test.py
+override_dh_auto_test:
+#nothing to test until pysam is installed.
+#test packages are provided for both pithon versions