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

Walter Weinmann <[email protected]> Fri, 3 Feb 2017 13:38:20 +0100
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CACe_jXfHWf4Gm2rQ0-AVaZvogUTUN4bgJ1PzxS26Xv5WyL5EiQ@mail.gmail.com>
--===============3151100334929431230==
Content-Type: multipart/alternative; boundary=001a11488ce4ca4a1205479f8f2a

--001a11488ce4ca4a1205479f8f2a
Content-Type: text/plain; charset=UTF-8

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 (with
> > 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
> >
>
>

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

<div dir=3D"ltr">Thanks Lars - got it wrong with the docs. But question, wh=
at is the meaning of these three integers?<br><div class=3D"gmail_extra"><b=
r><div class=3D"gmail_quote">On 3 February 2017 at 13:07, Lars Hesel Christ=
ensen <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">Hi Walter,<br>
<br>
According to the ct docs (<a href=3D"http://erlang.org/doc/man/common_test.=
html" rel=3D"noreferrer" target=3D"_blank">http://erlang.org/doc/man/<wbr>c=
ommon_test.html</a>)<br>
the shuffle seed should be on the form &#39;{integer(),integer(),integer(<w=
br>)}&#39;.<br>
<br>
Cheers,<br>
Lars<br>
<div class=3D"HOEnZb"><div class=3D"h5"><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>
&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;/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_stress/<wbr>l=
ogs/ct_run.test@wwe-<wbr>VirtualBox.2017-02-02_17.23.31<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_tester,<wbr>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>
&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}]},<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;<br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">&gt; __________________=
____________<wbr>_________________<br>
&gt; erlang-bugs mailing list<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a><b=
r>
&gt; <a href=3D"http://erlang.org/mailman/listinfo/erlang-bugs" rel=3D"nore=
ferrer" target=3D"_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-bu=
gs</a><br>
&gt;<br>
<br>
</div></div></blockquote></div><br><div><br></div>
</div></div>

--001a11488ce4ca4a1205479f8f2a--

--===============3151100334929431230==
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

--===============3151100334929431230==--