Re: Network connection

[email protected] (Adam Kennedy) Wed, 15 Nov 2017 05:32:32 +0000
Newsgroups perl.cpan.workers
Message-ID <CAAVyNAwiQvyd9BNWXre00PkZwTrHSZChC5gCyc-BxfY4AiH3bQ@mail.gmail.com>
--001a114dd1982bb6ce055dfed566
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Additional note.

The internet is not all the same. Different network environments will screw
you on almost anything you try, especially if it=E2=80=99s not HTTP (which =
at least
has protocols in operating systems for detecting =E2=80=9Creal internet=E2=
=80=9D)

Don=E2=80=99t do it in install tests, generally.

Adam

On Tue, 14 Nov 2017 at 9:29 pm, Adam Kennedy <[email protected]> wrote:

> I have fragments and variations of this stuff tucked away in old code I=
=E2=80=99m
> sure.
>
> Look at LWP::Online and Test::NeedsDisplay, and I may have done similar
> things in the test suites for ORDB::*
>
> Adam
>
> On Sun, 12 Nov 2017 at 7:00 am, James E Keenan <[email protected]> wrote:
>
>> Is there any code which is considered "best practice" for "skip_all
>> unless I have an Internet connection"?
>>
>> For the first time I want to write a library whose tests will benefit
>> from connection to an FTP server.  If there is some code that I could
>> just drop in for situations where the test suite is run offline, that
>> would be helpful.
>>
>> Thank you very much.
>> Jim Keenan
>>
>

--001a114dd1982bb6ce055dfed566
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div dir=3D"auto">Additional note.</div><div dir=3D"auto"><br></div><d=
iv dir=3D"auto">The internet is not all the same. Different network environ=
ments will screw you on almost anything you try, especially if it=E2=80=99s=
 not HTTP (which at least has protocols in operating systems for detecting =
=E2=80=9Creal internet=E2=80=9D)</div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Don=E2=80=99t do it in install tests, generally.</div><div dir=3D=
"auto"><br></div><div dir=3D"auto">Adam</div><br><div class=3D"gmail_quote"=
><div>On Tue, 14 Nov 2017 at 9:29 pm, Adam Kennedy &lt;<a href=3D"mailto:ad=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x"><div><div dir=3D"auto">I have fragments and variations of this stuff tuc=
ked away in old code I=E2=80=99m sure.</div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">Look at LWP::Online and Test::NeedsDisplay, and I may have d=
one similar things in the test suites for ORDB::*</div></div><div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Adam=C2=A0</div></div><div><br><div c=
lass=3D"gmail_quote"><div>On Sun, 12 Nov 2017 at 7:00 am, James E Keenan &l=
t;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any code wh=
ich is considered &quot;best practice&quot; for &quot;skip_all<br>
unless I have an Internet connection&quot;?<br>
<br>
For the first time I want to write a library whose tests will benefit<br>
from connection to an FTP server.=C2=A0 If there is some code that I could<=
br>
just drop in for situations where the test suite is run offline, that<br>
would be helpful.<br>
<br>
Thank you very much.<br>
Jim Keenan<br>
</blockquote></div></div></blockquote></div></div>

--001a114dd1982bb6ce055dfed566--