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"><<a href=3D"mailto:peter.e.a= [email protected]" target=3D"_blank">[email protected]</a>= ></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:"Ca= libri",sans-serif">Hi Walter,<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",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:"Calibri",sans-serif">From:</span></b><span lang=3D"EN-= US" style=3D"font-size:11.0pt;font-family:"Calibri",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 <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>><br> <b>Cc:</b> erlang-bugs <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>><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 = <<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= k</a>> 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 '{integer(),integer(),integer(<w= br>)}'.<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> > OS version:=C2=A0 =C2=A0 =C2=A0Ubuntu 16.10<br> > Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]<br> > [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]<br> ><br> > Attached a small example file, the result in raw.log is:<br> ><br> > --- Test run on 2017/02/02 17:23:30 ---<br> > Converting "/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_st= ress/." to<br> > "/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_stress" = and re-inserting<br> > with add_patha/1<br> ><br> ><br> > Common Test v1.13 starting (cwd is<br> > /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress)<br> ><br> ><br> > Common Test: Running make in test directories...<br> <span lang=3D"EN-US">> Including the following directories:<br> > "/home/wwe/SoftDevelopment/<wbr>kvs_stress_idea/kvs_stress/<wbr>i= nclude"<br> > Recompile: my_shuffle_SUITE<br> ><br> > CWD set to:<br> > "</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>"<br> ><br> > TEST INFO: 1 test(s), 1 suite(s)<br> ><br> > Cover compiling 2 modules - this may take some time... done<br> ><br> > Testing kvs_stress_idea.kvs_stress.my_<wbr>shuffle_SUITE: Starting tes= t (with<br> > repeated test cases)<br> > EXIT, reason {function_clause,<br> ><br> >=C2=A0 [{rand,uniform_s,[1,{4711}],[{<wbr>file,"rand.erl"},{l= ine,145}]},<br> >=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> >=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,"test_server_ctrl.erl"<wbr>},{line,3175}]},<b= r> >=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> >=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,"test_server_ctrl.erl"<wbr>},{line,2591}]},<b= r> >=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> >=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,"test_server_ctrl.erl"<wbr>},{line,2150}]},<b= r> >=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> >=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,"test_server_ctrl.erl"<wbr>},{line,1209}]},<b= r> >=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> ><br> > [{file,"test_server_ctrl.erl"}<wbr>,{line,1163}]}]}Cover ana= lysing... done<br> ><br> > Updating<br> > /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress/logs/<wbr>in= dex.html ...<br> </span>> done<br> > Updating<br> > /home/wwe/SoftDevelopment/kvs_<wbr>stress_idea/kvs_stress/logs/<wbr>al= l_runs.html<br> > ... done<br> ><br> ><br> > Test run failed! Reason:<br> > {'EXIT',<br> >=C2=A0 =C2=A0 =C2=A0{function_clause,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{rand,uniform_s,[1,{4711}],[<wbr>{fi= le,"rand.erl"},{line,145}]}<wbr>,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,shuffle_<wbr>cases= ,3,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,"test_serv= er_ctrl.erl"}<wbr>,{line,3175}]},<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,run_test_<wbr>case= s_loop,5,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,"test_serv= er_ctrl.erl"}<wbr>,{line,2591}]},<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,run_test_<wbr>case= s,3,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,"test_serv= er_ctrl.erl"}<wbr>,{line,2150}]},<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,ts_tc,3,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,"test_serv= er_ctrl.erl"}<wbr>,{line,1209}]},<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {test_server_ctrl,init_tester,<wbr>1= 0,<br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [{file,"test_serv= er_ctrl.erl"}<wbr>,{line,1163}]}]}}<br> ><br> ><br> ><u></u><u></u></p> </div> </div> <div> <div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">> ________________= ______________<wbr>_________________<br> > erlang-bugs mailing list<br> > <a href=3D"mailto:[email protected]" target=3D"_blank">erlang-bug= [email protected]</a><br> > <a href=3D"http://erlang.org/mailman/listinfo/erlang-bugs" target=3D"_= blank">http://erlang.org/mailman/<wbr>listinfo/erlang-bugs</a><br> ><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==--