Re: Erlang Common Test: {shuffle {seed}} not working

Walter Weinmann <[email protected]> Fri, 3 Feb 2017 13:54:06 +0100
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CACe_jXek9b4PWjhdJ6VDxUaXH=iy4bcBzBV=eXhTXfv6xr8=Ow@mail.gmail.com>
--===============7092769124033740842==
Content-Type: multipart/alternative; boundary=001a11488ce42876df05479fc8c7

--001a11488ce42876df05479fc8c7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Peter thanks for the help - I agree with the documentation issue.

Best regards
Walter


On 3 February 2017 at 13:51, Peter Andersson E <
[email protected]> wrote:

> Hi Walter,
>
>
>
> Please see the documentation for function random:seed/1. (
> http://erlang.org/doc/man/random.html#seed-1)
>
>
>
> The CT User=E2=80=99s Guide really should refer to this page to avoid con=
fusion.
>
>
>
> Best regards,
>
> Peter
>
>
>
> Ericsson AB, Erlang/OTP
>
>
>
> *From:* [email protected] [mailto:erlang-bugs-bounces@
> erlang.org] *On Behalf Of *Walter Weinmann
> *Sent:* den 3 februari 2017 13:38
> *To:* Lars Hesel Christensen <[email protected]>
> *Cc:* erlang-bugs <[email protected]>
> *Subject:* Re: [erlang-bugs] Erlang Common Test: {shuffle {seed}} not
> working
>
>
>
> Thanks Lars - got it wrong with the docs. But question, what is the
> meaning of these three integers?
>
>
>
> On 3 February 2017 at 13:07, Lars Hesel Christensen <[email protected]>
> wrote:
>
> Hi Walter,
>
> According to the ct docs (http://erlang.org/doc/man/common_test.html)
> the shuffle seed should be on the form '{integer(),integer(),integer()}'.
>
> Cheers,
> Lars
>
>
> On 02/02/2017 05:30 PM, Walter Weinmann wrote:
> > OS version:     Ubuntu 16.10
> > Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> > [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
> >
> > Attached a small example file, the result in raw.log is:
> >
> > --- Test run on 2017/02/02 17:23:30 ---
> > Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> > with add_patha/1
> >
> >
> > Common Test v1.13 starting (cwd is
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
> >
> >
> > Common Test: Running make in test directories...
> > Including the following directories:
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> > Recompile: my_shuffle_SUITE
> >
> > CWD set to:
> > "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/
> logs/[email protected]_17.23.31"
> >
> > TEST INFO: 1 test(s), 1 suite(s)
> >
> > Cover compiling 2 modules - this may take some time... done
> >
> > Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (wit=
h
> > repeated test cases)
> > EXIT, reason {function_clause,
> >
> >  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
> >                   {test_server_ctrl,shuffle_cases,3,
> >                       [{file,"test_server_ctrl.erl"},{line,3175}]},
> >                   {test_server_ctrl,run_test_cases_loop,5,
> >                       [{file,"test_server_ctrl.erl"},{line,2591}]},
> >                   {test_server_ctrl,run_test_cases,3,
> >                       [{file,"test_server_ctrl.erl"},{line,2150}]},
> >                   {test_server_ctrl,ts_tc,3,
> >                       [{file,"test_server_ctrl.erl"},{line,1209}]},
> >                   {test_server_ctrl,init_tester,10,
> >
> > [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
> >
> > Updating
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ..=
.
> > done
> > Updating
> > /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> > ... done
> >
> >
> > Test run failed! Reason:
> > {'EXIT',
> >     {function_clause,
> >         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
> >          {test_server_ctrl,shuffle_cases,3,
> >              [{file,"test_server_ctrl.erl"},{line,3175}]},
> >          {test_server_ctrl,run_test_cases_loop,5,
> >              [{file,"test_server_ctrl.erl"},{line,2591}]},
> >          {test_server_ctrl,run_test_cases,3,
> >              [{file,"test_server_ctrl.erl"},{line,2150}]},
> >          {test_server_ctrl,ts_tc,3,
> >              [{file,"test_server_ctrl.erl"},{line,1209}]},
> >          {test_server_ctrl,init_tester,10,
> >              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
> >
> >
> >
>
> > _______________________________________________
> > erlang-bugs mailing list
> > [email protected]
> > http://erlang.org/mailman/listinfo/erlang-bugs
> >
>
>
>
>
>


____

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

<div dir=3D"ltr">Peter thanks for the help - I agree with the documentation=
 issue.<div><br></div><div>Best regards</div><div>Walter</div><div><br><div=
 class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 3 February 2017 at=
 13:51, Peter Andersson E <span dir=3D"ltr">&lt;<a href=3D"mailto:peter.e.a=
[email protected]" target=3D"_blank">[email protected]</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang=3D"SV" link=3D"blue" vlink=3D"purple">
<div class=3D"m_7016853448430159657WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,sans-serif">Hi Walter,<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:&quot;Ca=
libri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Please see the documentation for fun=
ction random:seed/1. (<a href=3D"http://erlang.org/doc/man/random.html#seed=
-1" target=3D"_blank">http://erlang.org/doc/man/<wbr>random.html#seed-1</a>=
)<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">The CT User=E2=80=99s Guide really s=
hould refer to this page to avoid confusion.<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Best regards,<u></u><u></u></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Peter<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif">Ericsson AB, Erlang/OTP<u></u><u></u=
></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11.0pt;font-=
family:&quot;Calibri&quot;,sans-serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo=
nt-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang=3D"EN-=
US" style=3D"font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> =
<a href=3D"mailto:[email protected]" target=3D"_blank">erlang-=
[email protected]</a> [mailto:<a href=3D"mailto:erlang-bugs-bounces@e=
rlang.org" target=3D"_blank">erlang-bugs-bounces@<wbr>erlang.org</a>]
<b>On Behalf Of </b>Walter Weinmann<br>
<b>Sent:</b> den 3 februari 2017 13:38<br>
<b>To:</b> Lars Hesel Christensen &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;<br>
<b>Cc:</b> erlang-bugs &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;<br>
<b>Subject:</b> Re: [erlang-bugs] Erlang Common Test: {shuffle {seed}} not =
working<u></u><u></u></span></p><div><div class=3D"h5">
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<p class=3D"MsoNormal">Thanks Lars - got it wrong with the docs. But questi=
on, what is the meaning of these three integers?<u></u><u></u></p>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<p class=3D"MsoNormal">On 3 February 2017 at 13:07, Lars Hesel Christensen =
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
k</a>&gt; wrote:<u></u><u></u></p>
<blockquote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0c=
m 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class=3D"MsoNormal">Hi Walter,<br>
<br>
According to the ct docs (<a href=3D"http://erlang.org/doc/man/common_test.=
html" target=3D"_blank">http://erlang.org/doc/man/<wbr>common_test.html</a>=
)<br>
the shuffle seed should be on the form &#39;{integer(),integer(),integer(<w=
br>)}&#39;.<br>
<br>
Cheers,<br>
Lars<u></u><u></u></p>
<div>
<div>
<p class=3D"MsoNormal"><br>
On 02/02/2017 05:30 PM, Walter Weinmann wrote:<br>
&gt; OS version:=C2=A0 =C2=A0 =C2=A0Ubuntu 16.10<br>
&gt; Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]<br>
&gt; [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]<br>
&gt;<br>
&gt; Attached a small example file, the result in raw.log is:<br>
&gt;<br>
&gt; --- Test run on 2017/02/02 17:23:30 ---<br>
&gt; Converting &quot;/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_st=
ress/.&quot; to<br>
&gt; &quot;/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_stress&quot; =
and re-inserting<br>
&gt; with add_patha/1<br>
&gt;<br>
&gt;<br>
&gt; Common Test v1.13 starting (cwd is<br>
&gt; /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress)<br>
&gt;<br>
&gt;<br>
&gt; Common Test: Running make in test directories...<br>
<span lang=3D"EN-US">&gt; Including the following directories:<br>
&gt; &quot;/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_stress/<wbr>i=
nclude&quot;<br>
&gt; Recompile: my_shuffle_SUITE<br>
&gt;<br>
&gt; CWD set to:<br>
&gt; &quot;</span><a href=3D"mailto:/home/wwe/SoftDevelopment/kvs_stress_id=
ea/kvs_stress/logs/[email protected]_17.23.31" target=
=3D"_blank"><span lang=3D"EN-US">/home/wwe/SoftDevelopment/<wbr>kvs_stress_=
idea/kvs_stress/<wbr>logs/ct_run.test@wwe-<wbr>VirtualBox.2017-02-02_17.23.=
31</span></a><span lang=3D"EN-US"><wbr>&quot;<br>
&gt;<br>
&gt; TEST INFO: 1 test(s), 1 suite(s)<br>
&gt;<br>
&gt; Cover compiling 2 modules - this may take some time... done<br>
&gt;<br>
&gt; Testing kvs_stress_idea.kvs_stress.my_<wbr>shuffle_SUITE: Starting tes=
t (with<br>
&gt; repeated test cases)<br>
&gt; EXIT, reason {function_clause,<br>
&gt;<br>
&gt;=C2=A0 [{rand,uniform_s,[1,{4711}],[{<wbr>file,&quot;rand.erl&quot;},{l=
ine,145}]},<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{t=
est_server_ctrl,shuffle_<wbr>cases,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0[{file,&quot;test_server_ctrl.erl&quot;<wbr>},{line,3175}]},<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{t=
est_server_ctrl,run_test_<wbr>cases_loop,5,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0[{file,&quot;test_server_ctrl.erl&quot;<wbr>},{line,2591}]},<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{t=
est_server_ctrl,run_test_<wbr>cases,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0[{file,&quot;test_server_ctrl.erl&quot;<wbr>},{line,2150}]},<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{t=
est_server_ctrl,ts_tc,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0[{file,&quot;test_server_ctrl.erl&quot;<wbr>},{line,1209}]},<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{t=
est_server_ctrl,init_<wbr>tester,10,<br>
&gt;<br>
&gt; [{file,&quot;test_server_ctrl.erl&quot;}<wbr>,{line,1163}]}]}Cover ana=
lysing... done<br>
&gt;<br>
&gt; Updating<br>
&gt; /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress/logs/<wbr>in=
dex.html ...<br>
</span>&gt; done<br>
&gt; Updating<br>
&gt; /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress/logs/<wbr>al=
l_runs.html<br>
&gt; ... done<br>
&gt;<br>
&gt;<br>
&gt; Test run failed! Reason:<br>
&gt; {&#39;EXIT&#39;,<br>
&gt;=C2=A0 =C2=A0 =C2=A0{function_clause,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{rand,uniform_s,[1,{4711}],[<wbr>{fi=
le,&quot;rand.erl&quot;},{line,145}]}<wbr>,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,shuffle_<wbr>cases=
,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,&quot;test_serv=
er_ctrl.erl&quot;}<wbr>,{line,3175}]},<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,run_test_<wbr>case=
s_loop,5,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,&quot;test_serv=
er_ctrl.erl&quot;}<wbr>,{line,2591}]},<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,run_test_<wbr>case=
s,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,&quot;test_serv=
er_ctrl.erl&quot;}<wbr>,{line,2150}]},<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,ts_tc,3,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,&quot;test_serv=
er_ctrl.erl&quot;}<wbr>,{line,1209}]},<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,init_tester,<wbr>1=
0,<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,&quot;test_serv=
er_ctrl.erl&quot;}<wbr>,{line,1163}]}]}}<br>
&gt;<br>
&gt;<br>
&gt;<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">&gt; ________________=
______________<wbr>_________________<br>
&gt; erlang-bugs mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">erlang-bug=
[email protected]</a><br>
&gt; <a href=3D"http://erlang.org/mailman/listinfo/erlang-bugs" target=3D"_=
blank">http://erlang.org/mailman/<wbr>listinfo/erlang-bugs</a><br>
&gt;<u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear=3D"all"><div><a value=3D"+41618269006" sty=
le=3D"font-family:Arial,sans-serif;font-size:10.6667px"><span style=3D"colo=
r:rgb(34,34,34);font-size:10.6667px">____</span></a><br></div>
</div></div></div>

--001a11488ce42876df05479fc8c7--

--===============7092769124033740842==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs

--===============7092769124033740842==--