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"><<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a>></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 '{integer(),integer(),integer(<w= br>)}'.<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> > 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> > 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> > "/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>"<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_tester,<wbr>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> > 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}]},<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> ><br> </div></div><div class=3D"HOEnZb"><div class=3D"h5">> __________________= ____________<wbr>_________________<br> > erlang-bugs mailing list<br> > <a href=3D"mailto:[email protected]">[email protected]</a><b= r> > <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> ><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==--