[Pkg-scicomp-devel] xmds/trunk/debian

Rafael Laboissiere rafael at debian.org
Sat Nov 25 18:23:42 CET 2006


SVN commit 1363 by rafael:

Added a regression test for the package (lorenz.xmds example).  This
is done through the makefile debian/Makefile-examples, which is also
installed in the examples area.


 A             xmds/trunk/debian/Makefile-examples  
 M  +2 -1      xmds/trunk/debian/examples  
 M  +19 -6     xmds/trunk/debian/rules  


--- xmds/trunk/debian/examples #1362:1363
@@ -1 +1,2 @@
-examples/*.xmds
+examples-fftw3/*.xmds
+examples-fftw3/*.dat
--- xmds/trunk/debian/rules #1362:1363
@@ -7,24 +7,37 @@
 debdir  = $(CURDIR)/debian
 instdir = $(debdir)/xmds
 shrdir  = $(instdir)/usr/share
+expdir  = $(shrdir)/doc/xmds/examples
 mdir    = $(shrdir)/octave/site/m
 
 DEB_CONFIGURE_EXTRA_FLAGS = --enable-fftw3
 DEB_COMPRESS_EXCLUDE = .xmds
 DEB_AUTO_UPDATE_AUTOCONF = 1
 
+build/xmds::
+	# Add the appropriate fftw version to the *.xmds examples
+	test -d examples-fftw3 || mkdir examples-fftw3
+	cp examples/*.xmds examples/*dat examples-fftw3
+	perl -pi -e \
+	  '$$_.="\n  <fftw_version>3</fftw_version>\n" if /^<simulation>/' \
+	  examples-fftw3/*.xmds
+	# Run test
+	cp examples-fftw3/lorenz* source
+	( cd source ;						\
+	  make -f ../debian/Makefile-examples lorenz.m ;	\
+	  rm -f lorenz* )
+
 install/xmds::
 	for v in 2.1 2.9 ; do octave$$v-depends ; done
 
 binary-install/xmds::
-	# Move Octave file to the correct directory
+	# Move Octave file into the correct directory
 	mkdir -p $(mdir)
 	mv $(instdir)/usr/bin/loadxsil.m $(mdir)
 	chmod 644 $(mdir)/loadxsil.m
-	# Post-process *.xmds examples to add the appropriate fftw version
-	perl -pi -e \
-	  '$$_.="\n  <fftw_version>3</fftw_version>\n" if /^<simulation>/' \
-	  $(shrdir)/doc/xmds/examples/*.xmds
 
+	# Add Makefile to the examples directory
+	cp debian/Makefile-examples $(expdir)/Makefile
+
 clean::
-	rm -f config.log
+	rm -rf config.log examples-fftw3 source/lorenz.*



More information about the Pkg-scicomp-devel mailing list