Commit 51b3d817 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Skip tests that fail on big endian

parent 64b09b7a
Loading
Loading
Loading
Loading

debian/README.source

0 → 100644
+4 −0
Original line number Diff line number Diff line
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.
+9 −0
Original line number Diff line number Diff line
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@gmail.com>  Mon, 28 May 2018 13:44:30 +0000

primer3 (2.4.0-1) unstable; urgency=medium

  * New upstream version
+15 −0
Original line number Diff line number Diff line
@@ -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