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 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
Description: Allow some problematic unit tests to fail
Author: Rafael Laboissiere <rafael@debian.org>
Forwarded: not-needed
Last-Update: 2023-06-03
--- octave-instrument-control-0.3.1.orig/inst/instrhwinfo.m
+++ octave-instrument-control-0.3.1/inst/instrhwinfo.m
@@ -156,7 +156,7 @@ endfunction
%! # could fail if no i2c ports or not configured
%! assert(!isempty(instrhwinfo("i2c")))
-%!test
+%!xtest
%! p = pkg('describe', 'instrument-control');
%! hw = instrhwinfo ();
%! assert (hw.ToolboxVersion, p{1}.version)
--- octave-instrument-control-0.3.1.orig/src/tcp/tcp.cc
+++ octave-instrument-control-0.3.1/src/tcp/tcp.cc
@@ -203,7 +203,7 @@ The tcp() shall return instance of @var{
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert (! isnull (a));
@@ -210,7 +210,7 @@ number of bytes currently available to r
%! assert (isa (a, 'octave_tcp'));
%! tcp_close (a);
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80, 'name', 'test', 'timeout', 2.5);
%! assert (! isnull (a));
--- octave-instrument-control-0.3.1.orig/src/tcp/tcp_close.cc
+++ octave-instrument-control-0.3.1/src/tcp/tcp_close.cc
@@ -60,7 +60,7 @@ Close the interface and release a file d
#endif
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! tcp_close (a);
--- octave-instrument-control-0.3.1.orig/src/tcp/tcp_read.cc
+++ octave-instrument-control-0.3.1/src/tcp/tcp_read.cc
@@ -114,7 +114,7 @@ The tcp_read() shall return number of by
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert (! isnull (a));
--- octave-instrument-control-0.3.1.orig/src/tcp/tcp_write.cc
+++ octave-instrument-control-0.3.1/src/tcp/tcp_write.cc
@@ -93,7 +93,7 @@ Upon successful completion, tcp_write()
%!error <Invalid call to tcp_write> tcp_write()
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! # call HTTP HEAD
--- octave-instrument-control-0.4.0.orig/inst/tcpip.m
+++ octave-instrument-control-0.4.0/inst/tcpip.m
@@ -72,7 +72,7 @@ function out = tcpip (varargin)
endfunction
-%!test
+%!xtest
%! a = tcpip ("octave.org", 80);
%! assert(isa(a, "octave_tcp"));
%! fclose(a);
--- octave-instrument-control-0.4.0.orig/src/tcp/__tcp_properties__.cc
+++ octave-instrument-control-0.4.0/src/tcp/__tcp_properties__.cc
@@ -97,7 +97,7 @@ Undocumented internal function.\n\
%!shared ip
%! ip = resolvehost("www.octave.org", "address");
-%!test
+%!xtest
%! # test get
%! a = tcp (ip, 80);
%! assert (__tcp_properties__ (a,"type"), "tcp");
@@ -110,7 +110,7 @@ Undocumented internal function.\n\
%! tcp_close (a);
%! assert (__tcp_properties__ (a,"status"), "closed");
-%!test
+%!xtest
%! # test set
%! a = tcp(ip, 80);
%! __tcp_properties__ (a, 'name', "mytest");
@@ -118,7 +118,7 @@ Undocumented internal function.\n\
%! fail ("__tcp_properties__ (a,'invalid', 1)", "invalid property name");
%! tcp_close (a);
-%!test
+%!xtest
%! # test flush
%! a = tcp(ip, 80);
%! __tcp_properties__ (a, 'flush', 0);
@@ -132,7 +132,7 @@ Undocumented internal function.\n\
%!error <wrong number of arguments> __tcp_properties__ (1)
-%!test
+%!xtest
%! a = tcp (ip, 80);
%! fail ("__tcp_properties__ (a, 'name', 'test', 0)", "wrong number of arguments");
%! tcp_close (a);
--- octave-instrument-control-0.5.0.orig/src/tcp/tcp_timeout.cc
+++ octave-instrument-control-0.5.0/src/tcp/tcp_timeout.cc
@@ -82,7 +82,7 @@ If @var{timeout} parameter is omitted, t
}
#if 0
-%!test
+%!xtest
%! addr = resolvehost ('gnu.org', 'address');
%! a = tcp (addr, 80);
%! assert(tcp_timeout(a), -1);
|