[Pkg-octave-commit] [SCM] octave-fpl branch, master, updated. 049dc7d4d36d9af26048f416c891aa23dd686430

Rafael Laboissiere rafael at debian.org
Fri May 22 16:33:56 UTC 2009


The following commit has been merged in the master branch:
commit 049dc7d4d36d9af26048f416c891aa23dd686430
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Fri May 22 18:33:48 2009 +0200

    Add patch to avoid interactive tests

diff --git a/debian/patches/no-interactive-tests.diff b/debian/patches/no-interactive-tests.diff
new file mode 100644
index 0000000..a5ee1b9
--- /dev/null
+++ b/debian/patches/no-interactive-tests.diff
@@ -0,0 +1,35 @@
+Transform some tests that must be run interactively onto demos.
+
+ -- Rafael Laboissiere <rafael at debian.org>  Fri, 22 May 2009 18:31:22 +0200
+
+--- a/inst/FPL2pdesurf.m
++++ b/inst/FPL2pdesurf.m
+@@ -116,7 +116,7 @@
+ endfunction
+ 
+ %!shared msh
+-%!test
++%!demo
+ %! msh.p = [0 0; 1 0; 1 1; 0 1].';
+ %! msh.t = [1 2 3 1; 1 3 4 1].';
+ %! msh.e = [1 2 0 0 1 0 1; 2 3 0 0 2 0 1; 3 4 0 0 3 0 1; 4 1 0 0 4 0 1].';
+@@ -124,7 +124,7 @@
+ %! FPL2pdesurf (msh, u, "data_dep", "connections");
+ %! s = input ("do you see a square divided into two triangles with a diagonal red-to-blue gradient color (if you see an empty plot try ctrl-F)? (y/n): " ,"s");
+ %! assert(s, "y")
+-%!test
++%!demo
+ %! v = [0 0 1 1].';
+ %! FPL2pdesurf (msh, v);
+ %! s = input ("do you see a square divided into two triangles with a vertical red-to-blue gradient color (if you see an empty plot try ctrl-F)? (y/n): " ,"s");
+--- a/inst/FPL2pdeshowmesh.m
++++ b/inst/FPL2pdeshowmesh.m
+@@ -85,7 +85,7 @@
+ 
+ endfunction
+ 
+-%!test
++%!demo
+ %! msh.p = [0 0; 1 0; 1 1; 0 1].';
+ %! msh.t = [1 2 3 1; 1 3 4 1].';
+ %! msh.e = [1 2 0 0 1 0 1; 2 3 0 0 2 0 1; 3 4 0 0 3 0 1; 4 1 0 0 4 0 1].';
diff --git a/debian/patches/series b/debian/patches/series
index 83d0d13..704b02a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 autoload-yes.diff
 depends-octave.diff
 no-echo-command.diff
+no-interactive-tests.diff

-- 
octave-fpl



More information about the Pkg-octave-commit mailing list