Package: octave-vibes / 0.2.0-7

skip-test-if-no-interval-pkg.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Description: Skip unit tests in drawBox.m is package interval is not available
 Thanks to Oliver Heimlich for the coding suggestions.
Author: Rafael Laboissiere <[email protected]>
Forwarded: https://savannah.gnu.org/bugs/index.php?54581
Last-Update: 2018-08-27

--- octave-vibes-0.2.0.orig/inst/ vibes/drawBox.m
    octave-vibes-0.2.0/inst/ vibes/drawBox.m
@@ -83,34  83,52 @@ endfunction
 %!shared
 %! vibes.endDrawing
 
-%!shared ix,iy,iz,dx,dy,dz,rx,ry,rz
-%! pkg load interval
-%! vibes.beginDrawing
-%! x = [ 0  2 ; ...
-%!       7 22 ];
-%! y = [ 1 2 3 4 ; ...
-%!       2 3 4 5 ];
-%! z = [ 1 2 ; ...
-%!       3 4 ; ...
-%!       5 6 ; ...
-%!       7 8 ];
-%! ix = infsup (x)
-%! iy = infsup (y)
-%! iz = infsup (z)
-%! dx = infsupdec (x)
-%! dy = infsupdec (y)
-%! dz = infsupdec (z)
-%! rx = infsup (x, x   100)
-%! ry = infsup (y, y   100)
-%! rz = infsup (z, z   100)
-%!test vibes.drawBox (ix)
-%!test vibes.drawBox (iy)
-%!test vibes.drawBox (iz)
-%!test vibes.drawBox (dx)
-%!test vibes.drawBox (dy)
-%!test vibes.drawBox (dz)
-%!test vibes.drawBox (rx)
-%!test vibes.drawBox (ry)
-%!test vibes.drawBox (rz)
 
 %!shared ix,iy,iz,dx,dy,dz,rx,ry,rz,run_tests
 %! run_tests = ! strcmp ('Not installed', ...
 %!                       nthargout (2, 'pkg', 'describe', 'interval'));
 %! if run_tests
 %!     pkg load interval
 %!     vibes.beginDrawing
 %!     x = [ 0  2 ; ...
 %!           7 22 ];
 %!     y = [ 1 2 3 4 ; ...
 %!           2 3 4 5 ];
 %!     z = [ 1 2 ; ...
 %!           3 4 ; ...
 %!           5 6 ; ...
 %!           7 8 ];
 %!     ix = infsup (x)
 %!     iy = infsup (y)
 %!     iz = infsup (z)
 %!     dx = infsupdec (x)
 %!     dy = infsupdec (y)
 %!     dz = infsupdec (z)
 %!     rx = infsup (x, x   100)
 %!     ry = infsup (y, y   100)
 %!     rz = infsup (z, z   100)
 %! else
 %!     warning ('Package interval is not installed.  Some unit test will be skipped.');
 %! endif
 %!testif ; run_tests
 %! vibes.drawBox (ix)
 %!testif ; run_tests
 %! vibes.drawBox (iy)
 %!testif ; run_tests
 %! vibes.drawBox (iz)
 %!testif ; run_tests
 %! vibes.drawBox (dx)
 %!testif ; run_tests
 %! vibes.drawBox (dy)
 %!testif ; run_tests
 %! vibes.drawBox (dz)
 %!testif ; run_tests
 %! vibes.drawBox (rx)
 %!testif ; run_tests
 %! vibes.drawBox (ry)
 %!testif ; run_tests
 %! vibes.drawBox (rz)
-%!shared
 %!shared run_tests
-%! vibes.endDrawing
 %! if run_tests
 %!     vibes.endDrawing
 %! endif