[DRE-commits] [ruby-fftw3] 01/05: Refresh patches
Youhei SASAKI
uwabami-guest at alioth.debian.org
Tue Oct 15 08:35:06 UTC 2013
This is an automated email from the git hooks/post-receive script.
uwabami-guest pushed a commit to annotated tag debian/0.4-5
in repository ruby-fftw3.
commit 4f742b8510d7d564fc75babb0ec8cfb79a8f9667
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date: Tue Oct 15 17:02:02 2013 +0900
Refresh patches
Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
.../{FixLibraryPath => 0001-FixLibraryPath.patch} | 14 ++++++++++++--
...{RefactTestCases => 0002-RefactTestCases.patch} | 20 ++++++++++++++++----
debian/patches/series | 4 ++--
3 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/debian/patches/FixLibraryPath b/debian/patches/0001-FixLibraryPath.patch
similarity index 50%
rename from debian/patches/FixLibraryPath
rename to debian/patches/0001-FixLibraryPath.patch
index 0d1a29e..587637e 100644
--- a/debian/patches/FixLibraryPath
+++ b/debian/patches/0001-FixLibraryPath.patch
@@ -1,5 +1,15 @@
---- ruby-fftw3.orig/extconf.rb
-+++ ruby-fftw3/extconf.rb
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Tue, 15 Oct 2013 17:00:05 +0900
+Subject: FixLibraryPath
+
+---
+ extconf.rb | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/extconf.rb b/extconf.rb
+index 1607ea7..8e53119 100644
+--- a/extconf.rb
++++ b/extconf.rb
@@ -1,7 +1,7 @@
require "mkmf"
diff --git a/debian/patches/RefactTestCases b/debian/patches/0002-RefactTestCases.patch
similarity index 85%
rename from debian/patches/RefactTestCases
rename to debian/patches/0002-RefactTestCases.patch
index 9129b55..5e0031c 100644
--- a/debian/patches/RefactTestCases
+++ b/debian/patches/0002-RefactTestCases.patch
@@ -1,5 +1,15 @@
---- ruby-fftw3.orig/test/complexFFT.rb
-+++ ruby-fftw3/test/complexFFT.rb
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Tue, 15 Oct 2013 17:00:05 +0900
+Subject: RefactTestCases
+
+---
+ test/complexFFT.rb | 71 +++++++++++++++++++++++++++---------------------------
+ 1 file changed, 36 insertions(+), 35 deletions(-)
+
+diff --git a/test/complexFFT.rb b/test/complexFFT.rb
+index e92f64e..39ae57e 100644
+--- a/test/complexFFT.rb
++++ b/test/complexFFT.rb
@@ -1,38 +1,39 @@
+require "test/unit"
+require "narray"
@@ -39,8 +49,10 @@
-p( fc=FFTW3.fft(na, -1, 1) / na.shape[1] )
-p( fc=FFTW3.fft(na, -1, 0,1,2) / (na.shape[0]*na.shape[1]*na.shape[2]) )
-p FFTW3.fft(fc, 1, 0,1,2).real
+-
+-
+class ComplexTest < Test::Unit::TestCase
-
++
+ def setup
+ @na_double = NArray.float(8,4).fill(1.0)
+ @na_single = NArray.sfloat(8,4).indgen!
@@ -71,5 +83,5 @@
+ fc_complex = FFTW3.fft(@na_complex, -1, 0, 1, 2)/(@na_complex.shape[0]*@na_complex.shape[1]*@na_complex.shape[2])
+ assert_in_delta @na_complex, FFTW3.fft(fc_complex, 1, 0, 1, 2).real, @float_delta
+ end
-
++
+end
diff --git a/debian/patches/series b/debian/patches/series
index a0e9e44..b102573 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,2 @@
-FixLibraryPath
-RefactTestCases
+0001-FixLibraryPath.patch
+0002-RefactTestCases.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fftw3.git
More information about the Pkg-ruby-extras-commits
mailing list