[med-svn] [Git][med-team/primer3][master] Skip tests that fail on big endian
Liubov Chuprikova
gitlab at salsa.debian.org
Mon May 28 16:25:45 BST 2018
Liubov Chuprikova pushed to branch master at Debian Med / primer3
Commits:
51b3d817 by Liubov Chuprikova at 2018-05-28T15:09:35+00:00
Skip tests that fail on big endian
- - - - -
3 changed files:
- + debian/README.source
- debian/changelog
- debian/rules
Changes:
=====================================
debian/README.source
=====================================
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,4 @@
+The tests included in the sources of Primer3 are run during the building
+process. However, some tests are skipped for big-endian architectures because
+they are trying to use binary test files in the kmer_lists directory that
+were generated on a little-endian architecture.
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+primer3 (2.4.0-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Skip tests that fail on big endian
+ Closes: #890993
+ * Added d/README.source with explanation why some tests are skipped
+
+ -- Liubov Chuprikova <chuprikovalv at gmail.com> Mon, 28 May 2018 13:44:30 +0000
+
primer3 (2.4.0-1) unstable; urgency=medium
* New upstream version
=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,11 @@ include /usr/share/dpkg/default.mk
sampledir:=$(CURDIR)/debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples
+BUILDARCH:=$(shell dpkg-architecture -q DEB_BUILD_ARCH_ENDIAN)
+
+FAILED_TESTS:='primer_masker' \
+ 'primer_masker_formatted'
+
%:
dh $@ --sourcedirectory=src
@@ -13,7 +18,17 @@ override_dh_auto_build:
dh_auto_build -- 'CPP=$$(CXX)'
override_dh_auto_test:
+ifneq ($(BUILDARCH),little)
+ cp -a test/p3test.pl test/p3test.pl~
+ # exclude tests known to fail on big endian
+ # See README.source for further explanation.
+ for tst in $(FAILED_TESTS) ; do sed -i "/$${tst}/d" test/p3test.pl ; done
+endif
dh_auto_test --sourcedirectory=test
+ifneq ($(BUILDARCH),little)
+ # restore original test file
+ mv test/p3test.pl~ test/p3test.pl
+endif
dh clean --sourcedirectory=test
View it on GitLab: https://salsa.debian.org/med-team/primer3/commit/51b3d817e5b4e7a2dd5d0082cf4cb593e7952216
--
View it on GitLab: https://salsa.debian.org/med-team/primer3/commit/51b3d817e5b4e7a2dd5d0082cf4cb593e7952216
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180528/5dd52dec/attachment-0001.html>
More information about the debian-med-commit
mailing list