[freeimage] 14/18: d/rules: call the FreeImage and FreeImagePlus testsuites.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 11 19:19:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository freeimage.
commit cb94d2ffd5e1784f79d36ed2f5f5cd9aee81a882
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Wed Nov 4 20:00:52 2015 +0000
d/rules: call the FreeImage and FreeImagePlus testsuites.
---
debian/rules | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/rules b/debian/rules
index f361022..7b91f20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -41,6 +41,18 @@ override_dh_auto_install:
dh_auto_install -- INCDIR="$(INSTALL_INCDIR)" INSTALLDIR="$(INSTALL_LIBDIR)"
$(MAKE) -f Makefile.fip install INCDIR="$(INSTALL_INCDIR)" INSTALLDIR="$(INSTALL_LIBDIR)"
+override_dh_auto_test-arch:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ echo "Building and running the FreeImage testsuite..."
+ cd $(CURDIR)/TestAPI && \
+ $(CXX) $(CXXFLAGS) -I$(CURDIR)/Dist *.cpp $(LDFLAGS) -L$(CURDIR)/Dist -lfreeimage -o testAPI && \
+ LD_LIBRARY_PATH=$(CURDIR)/Dist ./testAPI
+ echo "Building and running the FreeImagePlus testsuite..."
+ cd $(CURDIR)/Wrapper/FreeImagePlus/test && \
+ $(CXX) $(CXXFLAGS) -I$(CURDIR)/Dist *.cpp $(LDFLAGS) -L$(CURDIR)/Dist -lfreeimageplus -lfreeimage -o fipTest && \
+ LD_LIBRARY_PATH=$(CURDIR)/Dist ./fipTest
+endif
+
override_dh_auto_clean:
dh_auto_clean
$(MAKE) -f Makefile.fip clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freeimage.git
More information about the debian-science-commits
mailing list